Hi. The documentation for the ArcGIS REST API reverseGeocode operation says that the `location` parameter can take one of three forms:
- location=103.8767227,1.3330736
- location={x: 103.876722, y: 1.3330736}
- location={ "x": 11563503, "y": 148410, "spatialReference": { "wkid": 3857 } }
In my testing, only the first option works. Option 2 and 3 return 'Error occurred while processing request' with no error message and a description 'http.400'
For my testing, i'm using the URL from the Examples within the documentation page, and switching out the various options for `location` and dropping the 'token' parameter. Like this:
https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?f=pjson&featureTypes=&location=-117.205525,34.038232
https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?f=pjson&featureTypes=&location={x:103.876722,y:1.3330736}https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?f=pjson&featureTypes=&location={ "x": 11563503, "y": 148410, "spatialReference": { "wkid": 3857 } }Only the top one is successful. Is the documentation off, or is there a bug in the reverseGeocode endpoint?
Thank you.