Select to view content in your preferred language

Reverse geocoding not working on geocoding service

1187
1
09-07-2021 03:43 PM
MichaelBouvet
Regular Contributor

I am trying to make a call to a composite locator geocoding service I have in my ArcGIS Enterprise. I used the following two calls as a model from this geonet post: https://community.esri.com/t5/data-management-questions/need-a-composite-locator-to-find-nearest-poi... , but when I put in my own url, it returns an error 400 "Unable to complete operation"

https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location=2.2945%2...

https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location=2.2945%2...

 

(I replace everything up until GeocodeServer). I am able to reach the reverse geocode UI in the directory, so I know it's getting to the locator and FindAddress calls work fine on it. 

I made the composite locator in ArcGIS Pro 2.8, and it is hosted in ArcGIS Enterprise 10.8.1. 

Please let me know if I am doing something wrong... here are the properties of the composite locator for reference: 

 

MichaelBouvet_0-1631054566073.png

 

 

 

Here are the capabilities of the service: 

MichaelBouvet_1-1631054566079.png

 

 

0 Kudos
1 Reply
ShanaBritt
Esri Regular Contributor

Michael:

Were the locators that participate in the composite locator created using the Create Address Locator tool or the Create Locator tool. If they were locators created with the Create Locator tool, the distance parameter is ignored and you should consider using the featureTypes parameter if you want to specify the type of matches that are returned. Have you tried using the reverseGeocode REST endpoint page to help form the request? Are you looking to return intersection results or any feature type?

More examples using the different parameters are illustrated in the help for the reverse geocode operation, https://developers.arcgis.com/rest/geocode/api-reference/geocoding-reverse-geocode.htm.

0 Kudos