Hi,
I am using pulldata() in Survey 123 to reverse geocode several fields with the ArcGIS world geocoding service.
For our purposes, we need a separate field for address number, address (street name only, including ave, rd, blvd, etc.), town, and zipcode.
Everything besides address is straightforward. Within the output values of the reverse geocoding service, there isn't any option for just address. The closest thing to it would be the ShortLabel, but that includes the property address number.
Is there any way I can reverse geocode for the address only?
Thank you!!
Hi. I do not think we will find a straight forward and simple answer to this. The data you can get through the pulldata() function depends on the output you get from the locator. If using the World Geocoding Service, I do not see any output that breaks down the address into street, street type, etc. The full doc is here.
I found this discussion which is somewhat related to your problem: https://community.esri.com/t5/arcgis-pro-questions/help-leveraging-unit-and-building-address-element...
Thanks for you reply. What if we have a custom geocoding service? Could I configure the outputs to include an "address only" return?
Is there any chance this is an option now? I'd like to extract just the address (house number + street name) from the geocode result in the same way one can extract the city, state and so on. I've tried the Address property shown here by way of pulldata("@json",${reversegeocode_json_output},"address.Address") but that didn't work. The Reverse Geocode sample in Survey123 Connect is what I used as a basis for that.
Sorry, I did a little more digging and didn't come across anything that indicated the house number and street name have separate fields in the json. The house number does have its own, so that's good.
The first image shows page 2 of the Geocode and Reverse Geocode sample in Connect.
https://developers.arcgis.com/rest/services-reference/enterprise/reverse-geocode/