English

How To: Update the legacy geocoding service for the ArcGIS for Local Government ArcGIS Viewer for Flex applications

Summary

Many of the ArcGIS for Local Government ArcGIS Viewer for Flex applications use the legacy geocoding service by default. As of December 31, 2013, the legacy geocoding services from this location has been retired.

Some of the functionality of this service is replaced by the geocoding service at the following URL:

http://geocode.arcgis.com/arcgis/index.html

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.

Procedure

This article describes how to update the following ArcGIS for Local Government ArcGIS Viewer for Flex applications to continue to work with the new geocoding service:

• Water Utility Operations Dashboard (ArcGIS 10.0, 10.1)
• Common Operational Picture (10.0, 10.1)
• SnowCOP (ArcGIS 10.0, 10.1)

  1. Identify and note the file to be updated based on the application name and version listed below:

    • Water Utility Operations Dashboard (ArcGIS 10.0, 10.1):

    <application name>\widgets\locate\infralocatewidget.xml


    • Common Operational Picture (10.1):

    <application name>\widgets\emheadercontroller\emheadercontrollerwidget.xml


    • Common Operational Picture (ArcGIS 10.0):

    <application name>\widgets\headercontroller\emheadercontrollerwidget.xml


    • SnowCOP (ArcGIS 10.0, 10.1):

    <application name>\widgets\locate\locatewidget.xml

  2. In Windows Explorer, browse to the location of the .xml file for each application.
  3. Copy the file and rename it backup_copy.xml.
  4. Open the original .xml file in Microsoft Notepad or another text editor.
  5. Look for the line of the configuration file similar to the code snippet below:

    <locator>http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer</locator>

  6. Copy and paste the following service, overwriting the legacy service.

    http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer

    The service being overwritten is one of two services below:

    <http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer

    or

    <http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer

  7. The configuration file should look similar to the code snippet below:

    <locator>http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer</locator>

  8. Save the .xml file.
  9. Open a web browser, clear the browsing cache and test the application to ensure it is operating correctly.

Related Information