We want to use Survey123 to reverse geocode a point from a map question. This function works well using the ArcGIS World Geocoder except there is no option to retrieve certain address fields in a stand-alone fashion. Specifically, we want to parse street name and street type into separate fields, but the geocoder only returns the full address in the JSON response. How to do we just get the street name and street type? @JamesTedrick @Ismael
There is no documentation for this feature in the api reference.
Example JSON output:
Hi. The reverseGeocode operation does not return the street type or name separately. However, the findAddressCandidates operation does. See the StType and StName properties.
A potential solution is to use the address you get back from the reverseGeocode and pass it to the findAddressCandidates operation to then parse the response. This would require a custom JS function.
This is just a thought. I have not tried it myself.
Hi Ismael,
Thank you for the suggestion. Do you have any examples of the syntax for using the findAddressCandidates in Survey123? I see someone else had a similar question about implementation.