Use your address locator

The Record Import tools are configured to use the ArcGIS World Geocoding 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 the location of the Record Import Tools and create a backup copy of the import_records.py script.
  2. Open the import_records.py in a Python editor or a text editor.
  3. 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 Record Import tools.
    all_locator_fields

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

    For a locator file (*.loc) these values can typically be found in the locator properties. The Input fields section contains a list of expected input address fields. If you are using a geocoding service, the expected input address fields are found on the service rest page under the section Address Fields. 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_fields 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_fields 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_fields 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_fields list.
Top