FRAMES | NO FRAMES | Description | Parameters | Examples | Response |
URL | http://<geocodeservice-url>/reverseGeocode |
---|---|
Parent Resource | Geocode Service |
The reverseGeocode operation is performed on a geocode service resource. The result of this operation is a reverse geocoded address resource. This resource provides information about all the address fields pertaining to the reverse geocoded address as well as its exact location.
You can provide arguments to the reverseGeocode operation as query parameters defined in the parameters table below.
Parameter | Details |
---|---|
f | Description: The
response format. The default response format is html. Values: html | json | kmz |
location | Description: The
point at which to search for the closest address. The structure of the point is the
same as the structure of the json point object
returned by the ArcGIS REST API. In addition to the JSON structure, you can specify the location with a
simpler comma-separated syntax. Syntax:
|
distance | Description: The
distance in meters from the given location within which a matching
address should be searched. If this parameter is not provided or an
invalid value is provided, a default value of 0 meters is used. Example: distance=100
|
outSR | Description: The
well-known ID of the spatial reference or a spatial reference json object for the returned address candidates. For a list of valid
WKID values, see Projected coordinate Systems
and Geographic coordinate Systems. This parameter was added at 10. |
Example 1: Reverse geocode based on a point:
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer/reverseGeocode?location=-117.195681386,34.057517097&distance=0{
"address" : {
"<fieldName1>" : "<fieldValue1>",
"<fieldName2>" : "<fieldValue2>"
},
"location" : { <point> }
}
{
"address" : {
"Street" : "771 TUNNEL AVE",
"Zone" : "94005"
},
"location" : { "x" : -122.400260954336, "y" : 37.7000445053795,"spatialReference": {"wkid": 4269}}
}