I have an internal organization survey, built in connect, and users complete on the web app. It essentially captures locations visited during trips. The locations are repeats. Users click on the geopoint map question, and using reverse geocode calculation, i auto-populate fields for nearest town and county, using these calculations.
pulldata("@geopoint", ${locations}, "reversegeocode.address.City", "https://gis.mtdeq.us/portal/sharing/servers/7c3a2c800b4f44249adb7c9b03a85ab6/rest/services/World/GeocodeServer")
pulldata("@geopoint", ${locations}, "reversegeocode.address.Subregion", "https://gis.mtdeq.us/portal/sharing/servers/7c3a2c800b4f44249adb7c9b03a85ab6/rest/services/World/GeocodeServer")
It works as it should most of the time, but every now and then the town and county fields fail to populate, and i can see no reason why this should be happening. Was wondering if anyone else has experienced something like this. Thanks.
Have you checked the Geocoder has data for those locations? Maybe it is working but returning blanks? Worth checking that off the troubleshooting list.
I like (and prefer) this approach.
I first pull the JSON, then pull values from the JSON. Here is an example:
Sometimes, addresses don't contain the data you'd expect them to. In cases like that, I refer back to the JSON.
Thanks I will give this a try.
Yeah the geocoder should have values for closest town and the county, regardless of where you click on the map. Thanks.