Use your address locator

The Incident Mapping tools are configured to use the World Geocode Service available with all ArcGIS Online organizational accounts, but can also be configured to use your own locator or geocoding service.

To use your own locator, complete the following steps:

  1. Browse to MapsandGeodatabase\scripts and open import_publish_incidents.py in a Python editor such as IDLE or a text editor.
  2. Search for the first occurrence of all_locator_fields. This value should be very near the top of the script. This value and the four lines of the script must be modified to reflect the properties of the locator or geocode service you will be using with the Incident Mapping tools.
    all_locator_fields

    These are the input address fields that the locator may use to identify the geography of an address.

    These values can typically be found in the locator properties. For example, open the properties of the Composite locator found in the LocalGovernment geodatabase provided with these tools. The Input Address Fields section contains a list of four values: Street, City, State, and ZIP. These are the values that can be used by this locator to find the geography of an address. Alternatively, the properties of the DualRange locator found in the same location are structured differently because this is a different type of locator. In this case the input address fields (Street, City, State, and ZIP) can be found in the left column that is exposed after expanding the Input address fields section.

    List the values in the same order they appear in the locator properties.

    loc_address_field

    The input address field that the locator is expecting to contain, at minimum, the address number and street name of the address. For single line geocoding this field may also contain the complete address. This input address field is typically called Street or Address.

    This value must also exist in the all_locator_values list.

    loc_city_field The input address field that the locator is expecting to contain the city name. This input address field is typically called City. For single line geocoding use empty quotes for this value, otherwise this value must also be included in the all_locator_values list.
    loc_zip_field The input address field that the locator is expecting to contain the ZIP or code. This input address field is typically called ZIP or Postal. For single line geocoding use empty quotes for this value, otherwise this value must also be included in the all_locator_values list.
    loc_state_field The input address field that the locator is expecting to contain the state or province name or code. This input address field is typically called State, Province, or Region. For single line geocoding use empty quotes for this value, otherwise this value must also be included in the all_locator_values list.
Top