HowTo:  Update the legacy geocoding service for ArcGIS for Local Government JavaScript applications

相关信息
Article ID: 41562
Software:
ArcGIS for Local Government 10.0, 10.1
Platforms: N/A

问题描述
Many of the JavaScript applications for ArcGIS for Local Government use the legacy geocoding service by default.

As of December 31, 2013, the
legacy geocoding service has been retired.

Some of the functionality of this service is replaced with the following geocoding service:


http://geocode.arcgis.com/arcg ... erver
For more information on the legacy geocoding services, please read the Esri blog:


Legacy Geocoding and Route Services Will Be Retired on December 31, 2013
已邀请:

EsriSupport

赞同来自:

解决方案
This article describes how to update the following ArcGIS for Local Government applications to work with the new geolocating service:

• Citizen Service Request (ArcGIS 10.0, 10.1)
• Community Addressing (ArcGIS 10.0, 10.1)
• Election Results (ArcGIS 10.0, 10.1)
• Executive Dashboard (ArcGIS 10.1)
• Land Use Public Comment (ArcGIS 10.0, 10.1)
• Public Information Center (ArcGIS 10.0, 10.1)
• Park and Recreation Finder (ArcGIS 10.0, 10.1)
• My Government Services (ArcGIS 10.0, 10.1)
• Election Polling Place (ArcGIS 10.0, 10.1)

For information on updating routing services see technical article
41593: HowTo: Update the legacy routing services for ArcGIS for Local and State Government (ArcGIS 10.2) applications.


  1. In Windows Explorer, browse to the location of the application.
  2. Browse to the config.js or config.txt file.
  3. Copy the file and rename it backup_config.txt.
  4. Open the original config.js or config.txt file in Microsoft Notepad or another text editor.
  5. Scroll down the configuration file till you see a code snippet similar to the snippet below: LocatorURL: "http://tasks.arcgisonline.com/ ... ot%3B,
  6. Copy and paste the new service, http://geocode.arcgis.com/arcg ... erver overwriting the legacy service: http://tasks.arcgisonline.com/ ... erver
    For the My Government Services 10.1 application update the configuration items for 'FieldValues' to look like the code snippet below: FieldValues["USA.RoofTop", "USA.StreetName"]
  7. The resulting configuration file should look similar to the code snippet below: LocatorURL: "http://geocode.arcgis.com/arcg ... ot%3B,
  8. Save the config.js or config.txt file.
  9. Open a web browser, clear the browsing cache and test the application to ensure it is operating correctly.


其它相关参考
  1. HowTo: Update the legacy routing services for ArcGIS for Local and State Government (ArcGIS 10.2) applications
  2. Update legacy routing services for the Park and Recreation Finder, My Government Services, and Election Polling Places
  3. HowTo: Update the legacy geocoding service for the ArcGIS for Local Government ArcGIS Viewer for Flex applications


创建及修改时间
Created: 9/5/2013

Last Modified: 12/30/2013
原文链接
http://support.esri.com/en/kno ... 41562

要回复问题请先登录注册