Geocode activity - format of "Address" input
Hi. I'm trying to get the Geocode activity working. I've specified the URL of our geocoder (https://maps.orcity.org/arcgis/rest/services/Geocoder_SingleHouseWithUnits/GeocodeServer). It has an entry in the addressFields property of "Street". According to the documentation, I should set the Address input to Street: 625 Center St to search for this address. However, it doesn't work. The url that's being called is ...findAddressCandidates?singleLine=Street%3A%20625%20Center%20St...
Could anyone point me towards the correct syntax?
Thanks!
Chris
-
It seems to me there's a problem with the Geocode activity. It uses a field called singleLine, whereas this particular geocoding server uses Street and/or Single Line Input.
As a workaround, you could use a Send Web Request activity, where
- URL: https://maps.orcity.org/arcgis/rest/services/Geocoder_SingleHouseWithUnits/GeocodeServer/findAddressCandidates
- Query: ={"Single Line Input": "625 Center St", "f": "json"}
- Expect: json
You could also use "Street" instead of "Single Line Input" in the Query definition, the result seems to be the same.
The returned address will be in:
=$webRequest1.json.candidates[0].addressAnd its location can be retrieved with a Create Point activity where
- X: =$webRequest1.json.candidates[0].location.x
- Y: =$webRequest1.json.candidates[0].location.y
- Spatial Reference: =$webRequest1.json.spatialReference.wkid
0 -
Perfect, thanks Berend!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare