Select to view content in your preferred language

Reverse geocode only address

956
4
09-06-2023 10:33 AM
OuterSpatial
Emerging Contributor

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.

OuterSpatial_0-1694021440273.png

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!! 

 

0 Kudos
4 Replies
IsmaelChivite
Esri Notable Contributor

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... 

0 Kudos
OuterSpatial
Emerging Contributor

Thanks for you reply. What if we have a custom geocoding service? Could I configure the outputs to include an "address only" return?

0 Kudos
AdamGebhart
Frequent Contributor

@IsmaelChivite 

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. 

0 Kudos
AdamGebhart
Frequent Contributor

@IsmaelChivite 

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.

AdamGebhart_0-1758309400486.png

https://developers.arcgis.com/rest/services-reference/enterprise/reverse-geocode/

AdamGebhart_1-1758309458170.png

 

 

0 Kudos