Reverse Geocode (Geocoding)


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.



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

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

Feature Class

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

Address Locator

The output feature class.

Feature Class

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.

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")


Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

Published 6/8/2010