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 Ivan,
I wonder have you checked about this documentation for Route Services in REST API
If you want to customize your own Travel Mode, you need either log into your organization account for arcgis.com to create a new "Travel Mode" followed by this doc Travel modes—ArcGIS Online Help | ArcGIS
OR
You need to specify the JSON object containing the settings for a travel mode supported by your organization. To get a list of supported travel modes, execute the GetTravelModes tool from the Utilities service.
Hope this can help!
Happy Friday.
Hi!
Yes, I've read it. But as I mentioned - I'm not in position right now to deal with specific Travel Modes. I will if it's necessary, but for now mileage we get is OK for what we do.
Right now it's a very simple example where I call service with NO additional parameters and I assume to get "generic" route. But it takes extra 100 miles hoop. I'm just curious if it's issue with default routing or there is specific reason for this. Not sure if it takes into account constructions? Traffic? I'd like to see straight route..