Reverse Geocode (Geocoding)

License Level:BasicStandardAdvanced

Summary

Creates addresses from point locations in a feature class. The reverse geocoding process searches for the nearest address or intersection for the point location based on the specified search distance.

Usage

Syntax

ReverseGeocode_geocoding (in_features, in_address_locator, out_feature_class, {address_type}, {search_distance})
ParameterExplanationData Type
in_features

A point feature class or layer from which addresses are returned based on the features' point location.

Feature Class
in_address_locator

The address locator to use to reverse geocode the input feature class.

Address Locator
out_feature_class

The output feature class.

Feature Class
address_type
(Optional)

Indicates whether to return addresses for the points as street addresses or intersection addresses if the address locator supports intersection matching.

  • ADDRESSReturns street addresses or in the format defined by the input address locator. This is the default option.
  • INTERSECTIONReturns intersection addresses. This option is available if the address locator supports matching intersection addresses.
String
search_distance
(Optional)

The distance used to search for the nearest address or intersection for the point location.

Linear unit

Code Sample

ReverseGeocode Example (Python Window)

The following Python window script demonstrates how to use the ReverseGeocode function in immediate mode.

# Import system modules
import arcpy
from arcpy import env
env.workspace = "C:/data/locations.gdb"

# Set local variables:
input_feature_class = "customers"
address_locator = "e:/StreetMap/data/Street_Addresses_US"
result_feature_class = "customers_with_address"

arcpy.ReverseGeocode_geocoding(input_feature_class, address_locator, result_feature_class, "ADDRESS", "100 Meters")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
1/22/2013