Survey123: Split the address number from street name?

647
3
05-23-2019 09:20 AM
JordanMiller4
Occasional Contributor III

How do I split the address numbers from street names and move that data to another field? 

0 Kudos
3 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Jordan,

How are you receiving the street address?  If it's coming from a reverse geocode, you should be able to request the specific subcomponent (see the 'AddNum' value in the sample at Geopoints—Survey123 for ArcGIS | ArcGIS ).  If you are trying to parse text entered in a form question, that could be more difficult.

0 Kudos
JordanMiller4
Occasional Contributor III

Hi James,

I see there is a something for getting the address numbers but there isn't anything for the street. I figured I would need to somehow remove the everything before the first space which would remove the house number. 

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Jordan,

It may help to see the response first - street name may be in the response.  The World Geocoding Service documentation (geocodeAddresses—ArcGIS REST API: World Geocoding Service | ArcGIS for Developers ) shows it in the response.

0 Kudos