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:
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?
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.