I am having a difficult time finding documentation regarding how to return street addresses from a Reverse Geocode request to my custom locator. I am only able to get a City & State in the REST response.
For example:
(1) First, I'll visit my custom locator's findAddressCandidates operation, and I'll GET in an address that my locator can return, (i.e. "5905 Wilshire Blvd, 90036" - the LA County Museum of Art). A point candidate is returned with a score of 100 and coordinates of {"x": -118.357929, "y": 34.062822}. My custom locator uses GCS_WGS_1984, wkid 4326.
(2) Next, I visit my custom locator's reverseGeocode operation and in the location field, I GET a request with the location parameter set to {"x":-118.357929,"y":34.062822,"spatialReference":{"wkid":4326}}.
(3) The value that is returned from the REST call in JSON format is pasted below. The original address is not returned, only the city and state.
{
"address": {
"Match_addr": "Los Angeles, California",
"LongLabel": "Los Angeles, CA",
"ShortLabel": "Los Angeles",
"Addr_type": "Locality",
"Type": "City",
"PlaceName": "Los Angeles",
"AddNum": "",
"Address": "",
"Block": "",
"Sector": "",
"Neighborhood": "",
"District": "",
"City": "Los Angeles",
"MetroArea": "",
"Subregion": "",
"Region": "California",
"RegionAbbr": "CA",
"Territory": "",
"Postal": "",
"PostalExt": "",
"CntryName": "USA",
"CountryCode": ""
},
"location": {
"x": -118.357929,
"y": 34.062822,
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
}
}
}
As I mentioned, I have looked through the reverse geocoding documentation and I haven't been able to identify why my locator won't return street address, postcode, etc. Has anybody else experienced this? @ShanaBritt do you have any input on how to configure the locator so that street address is returned from the reverse geocode operation? I am running ArcGIS Enterprise 11.3.