tenhavej

Set distance parameter in Geocode operation

Discussion created by tenhavej on Apr 5, 2018
Latest reply on Apr 5, 2018 by NYasmin-esristaff

UWP runtime, version 100.2.1.

 

I am geocoding an address using Esri.ArcGISRuntime.Tasks.Geocoding.LocatorTask and would like to adjust the scores of the results using the location and distance parameters available in Geocode REST API

 

However, I cannot see a way that the distance parameter can be set. The parameters class (Esri.ArcGISRuntime.Tasks.Geocoding.GeocodeParameters) contains a PreferredSearchLocation property that will set the location parameter for the request, but it doesn't have a property for setting the distance. Using fiddler to inspect the request, I can see that the distance parameter is set to 50000 by default. This does not appear to be in any of the examples.

 

How can I set the distance parameter of a geocode request when using the LocatorTask?

 

Thanks, 

Jeff

Outcomes