Configure application proxy

The Live, Work, Locate application consumes services you authored and geographic information from your organization. The application also provides drive-time analysis and distances using the ArcGIS Online World Route Service.

Esri's World Route Service uses service credits when drive-time analysis and distances are computed.

Add service URLs

The proxy file allows the application to access services you author with geographic information from your organization. To configure the proxy to access your services, complete the following steps:

  1. Using Windows Explorer, browse to your <your directory>\Application\LiveWorkLocate\proxy folder and open proxy.config in Microsoft Notepad or another text editor.
  2. Enter the URL of each ArcGIS Services Directory referenced in your Live, Work, and Locate maps. Each URL must be enclosed in a set of serverURL tags. If default URLs are listed, ensure these URLs are not removed. All web traffic goes through the proxy and the default URLs are required by the application.
                    
    <serverUrl url="http://yourserver/arcgis/rest/services/"></serverUrl>
    <serverUrl url="http://route.arcgis.com/arcgis/rest/"></serverUrl>
                
              
  3. Save the file and exit.

Add and register an application with your ArcGIS Online organizational account

The Live, Work, Locate application calculates drive-times and provide distance calculations using the World Route Service. To enable this functionality, the application must be registered with an ArcGIS Online for organizations account.

To register your application, complete the following steps:

  1. Add the application to your ArcGIS Online for organizations account using the following parameters:
    • The item is: An Application and item type is Web Mapping
    • URL: Type the URL for you application
    • Purpose: Ready To Use
    • API: JavaScript
    • Title: Type the application title
    • Tags: Add the application tags
  2. Register your app using the following parameters:
    • App Type: Browser
    • Redirect URI: Type the fully qualified URI for your server and the web server port. This is usually port 80, not the port for ArcGIS for Server (port 6080), for example http://servername.domain:[80].
  3. Copy the App ID and App Secret values to a text file for use later in the configuration.

Add application registration to the proxy

The proxy file allows the application to access the ArcGIS Online World Route Service. To configure the proxy to access the drive-time and routing services, complete the following steps:

  1. Using Windows Explorer, browse to <your web server directory>\LiveWorkLocate\proxy and open the proxy.config file in Microsoft Notepad or another text editor.
  2. Copy the App ID and App Secret values from the text file to the appropriate tags.
    App ID clientId="App ID"
    App Secret clientSecret="App Secret"
  3. Set the rateLimit and rateLimitPeriod values.
    Rate Limit rateLimit="50"
    Rate Limit Period (in minutes) rateLimitPeriod="10"
  4. Enter the URL of each ArcGIS Services Directory referenced in the configuration of the application. Each URL must be enclosed in a set of serverURL tags. If default URLs are listed, ensure these URLs are not removed. All web traffic goes through the proxy and the default URLs are required by the application.
  5. Save the file and exit.
Top