Select to view content in your preferred language

Default routing is way off for this specific route

5034
10
08-21-2015 09:29 AM
IvanDemkovitch
Deactivated User

I'm using ArcGis REST API to get routes. Nothing special, just standard driving routes. Actually I'm using it for transportation industry but right now I didn't configure any travel modes and just call webservice as is. All I'm looking for is driving miles.

So, for example this one:

http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?stops=-92.247147...???

Little Rock, AR -> Houston, TX.

There is a direct route top to bottom, Google maps shows it with variations, about 450 miles.

Argis returns route that takes it through Fort Worth which is extra 100 miles(!!)

Any settings I can add to give me shortest driving route?

Tags (1)
0 Kudos
10 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor

Hi Reynald,

There is. Please take a look about this RouteTask | API Reference | ArcGIS API for JavaScript

And here is another sample about how to use route task RouteTask | API Reference | ArcGIS API for JavaScript

Hope this can help.

0 Kudos