neha1611

Closestfacility : Unable to change impedence Attribute from TravelTime to Miles

Discussion created by neha1611 on Jul 2, 2014
Hi All,

I am using the below subscription based service for closest facility in my project:

https://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World/solveClosestFacility

We need to limit the cutoff based on distance in miles, but I have not been able to do so.
I am using the following code to set the cutoff to 15 miles:

params.impedenceAttribute = "Miles";
params.defaultCutoff = 15.0;

But its still cutting off the locations based on Total Travel Time in minutes.

I would appreciate quick help as my deadlines are pretty tight.

Thanks a ton!

-Neha

Outcomes