Get StreetName from findAddressCandidates

444
1
06-04-2018 04:33 AM
DuongNguyen2
New Contributor

Hi,

I want to get the StreetName from "findAddressCandidates" request.

Example: An address in Belgium "Bosstraat 166, 2850 Boom" (randomly pick from geopunt.be)

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?f=json&magi... 

I try outFields=StName, but it doesn't give my expected value.

I get "Bos" instead of "Bosstraat", how can I get "Bosstraat" in this case?

Thanks

Tags (1)
0 Kudos
1 Reply
BradNiemand
Esri Regular Contributor

The street level values returned by the geocoding service are broken down into the smallest level elements and returned in separate fields so the street type, "straat", is returned as part of a separate field named "StType".  You can choose to also return "StType" as another output but another option is to request "StAddr" which will contain the entire formatted string of all street components as well as the house number ("Bosstraat 166" in your case).

If you need the street components without the house number, you could always post-process the "StAddr" to remove the value returned from "AddNum" from it.

Brad