Skip to main content

Batch Geocode (Geocoding Tools)

Summary

Geocodes a large table or .csv file of addresses or places asynchronously using the batchGeocode REST API. The geocoded results are returned as a feature class and do not require ArcGIS Pro to chunk the request into smaller batches.

When using this tool, geocoding can be isolated and scaled on the server independent of other processes. For example, when submitting a job to the ArcGIS World Geocoding Service, dedicated hardware will be assigned to process the file, resulting in a faster response. You can select either the ArcGIS World Geocoding Service or a service hosted in ArcGIS Enterprise on Kubernetes 11.5 or later with your configured Kubernetes cluster.

Note:

Performing geocoding operations using the ArcGIS World Geocoding Service requires an ArcGIS organizational account, and consumes credits. The organizational account must have enough credits to complete the entire geocoding request.

Credit estimation is shown at the top of the tool in the Geoprocessing pane when the active portal is ArcGIS Online.

Usage

  • When using the ArcGIS World Geocoding Service as the Input Batch Service parameter value, the input table or file must have at least 100,000 records.

  • When using the ArcGIS World Geocoding Service as the Input Batch Service parameter value, the Input Table parameter value is temporarily stored in your ArcGIS Online portal until the job has completed. After the job has finished, the temporary file will be deleted from the portal.

  • The maximum number of records supported by this tool is 50 million. If the table exceeds 50 million records, split the table into multiple tables with 50 million or less records. If the input is a .csv file, it must use UTF-8 encoding with a byte order mark (BOM).

    Note:

    You can use a third-party application such as Microsoft Excel or Notepad++ to add a UTF-8 BOM to the .csv file.

  • The first row of the input .csv file is used as the field names for the output feature class in addition to the fields appended from the locator. Field names cannot contain spaces or special characters other than an underscore.

    Note:

    When using the tool in Python, the fields of the table_field_name parameter value must be in the same case as the fields for the input_address_field parameter value for field mapping using the address_fields parameter.

  • When the locator is published to ArcGIS Enterprise on Kubernetes with the Batch Geocode capability enabled, two services are created: a GeocodeServer service and a GPServer service. When using the tool in Python, the in_batch_service parameter value must be the GPServer, for example, https://machinename.domain.com/server/rest/services/service_name/GPServer .

  • The geocoding results are saved in the same spatial reference as the service. You can change the spatial reference of the output by setting the Output Coordinate System environment.

  • The geocoding results will contain all relevant geocoding information, including score, status, and the matched address of each record, as well as the values from the original input table or file. The geocoding results from this tool contain a static snapshot of the original input table, so adding or updating values in the original table will not update the results in the output feature class. Rerun the tool to create an output feature class that contains these changes.

  • The following parameters are not supported for all batch services used for the Input Batch Service parameter value: Country or Region, Preferred Location Type, and Category.

  • This tool does not support selections. To geocode a portion of a table, export the part of the table you want to geocode and run the tool on the new, smaller table.

Parameters

Label Explanation Data type

Input Table

The table or .csv file of addresses or places that will be geocoded.

Table View

Input Batch Service

The geocode service on the portal with batch geocode support that will be used to geocode the table of addresses and places.

Note:

If the service is a custom locator or an ArcGIS StreetMap Premium locator, it must be published to ArcGIS Enterprise on Kubernetes 11.5 or later with the Batch Geocode capability enabled.

String

Address Field Mapping

The mapping of address fields used by the locator to fields in the input table or file of addresses. Specify Single Field if the complete address is stored in one field in the input table or file, for example, 303 Peachtree St NE, Atlanta, GA 30308. Specify Multiple Fields if the input addresses are divided into multiple fields such as Address, City, State, and ZIP for a general United States address. Specify Single Field and Country Field if the complete address and the country are divided into separate fields such as Address (303 Peachtree St NE, Atlanta, GA 30308) and Country (USA).

Some locators support multiple input addresses fields, such as Address, Address2, and Address3. In this case, the address component can be separated into multiple fields, and the address fields will be concatenated at the time of geocoding. For example, 100, Main st, and Apt 140 across three fields or 100 Main st and Apt 140 across two fields, both become 100 Main st Apt 140 when geocoding.

If you do not map an optional input address field used by the address locator to a field in the input table or file of addresses, specify that there is no mapping using <None> in place of the field name.

Field Info

Output Feature Class

The output geocoded feature class.

Note:

Saving the output to shapefile format is not supported due to shapefile limitations.

Feature Class

Country or Region

The country or countries that the search will be limited to for the geocoded addresses. Specifying a country will improve the accuracy of geocoding in most cases. When no country is specified, geocoding is performed using all supported countries of the locator.

This parameter value will be overridden when you specify Single Field and Country Field for the Address Field Mapping parameter.

String

Preferred Location Type

(Optional)

Specifies the preferred output geometry that will be returned for PointAddress matches. If the preferred location does not exist in the data, the default location will be returned. See the ArcGIS REST API web help for details about the locationType parameter for geocodeAddresses.

  • Address locationGeometry for geocode results that represent an address location such as a rooftop location, parcel centroid, or front door will be returned. This is the default.

  • Routing locationGeometry for geocode results that represent a location close to the side of the street that can be used for vehicle routing will be returned.

String

Category

(Optional)

Limits the types of places the locator searches, which eliminates false positive matches, unwanted address level matches, or disambiguates coordinate searches. This parameter can help speed up the search process. When no category is used, geocoding is performed using all supported categories. Not all category values are supported for all locations and countries.

See the ArcGIS REST API web help for details about category filtering.

String

Output Fields

(Optional)

Specifies the locator output fields that will be returned in the geocode results.

The original field names from the Input Table parameter value will be maintained if the Location Only, Minimal, or Minimal and User Fields option is specified.

  • AllIncludes all available locator output fields in the geocode results. This is the default.

  • Location OnlyStores the Shape field in the geocode results.

  • MinimalAdds the following fields that describe the location and how well it matches information in the locator in the geocode results: Shape, Status, Score, Match_type, Match_addr, and Addr_type.

  • Minimal and User FieldsThe MINIMAL fields, as well as any user-defined custom output fields, will be added and returned in the geocode results.

String

Match Narrative

(Optional)

Specifies how the match narrative will be returned in the output geocoded feature class. If no parameter value is specified, the Include match narrative locator property setting will be used. This parameter can help better understand how addresses were matched in the geocoded feature class.

  • Add match narrative to outputA field named MatchNarrative will be added to the geocoded feature class. This field contains the match narrative text for each matched address.

  • Split match narrative into fieldsThe single field match narrative text will be pulled from the JSON object. The match narrative text will be parsed, split into individual fields, and appended to the geocoded feature class.

String

Environments

Output Coordinate System

Licensing information

  • Basic: Requires your account in ArcGIS Enterprise to have the Perform Analysis privilege
  • Standard: Requires your account in ArcGIS Enterprise to have the Perform Analysis privilege
  • Advanced: Requires your account in ArcGIS Enterprise to have the Perform Analysis privilege