ESRI direction service

164
4
03-12-2019 05:26 AM
RatikantaLenka1
New Contributor

I am using arcgis javascript Direction Service.  After getting response the stops are not in order. That means the order I put the stops as input are different when I get the response from Direction Service.

0 Kudos
4 Replies
JohnGrayson
Esri Regular Contributor

Try setting the findBestSequence to false parameter of your RouteParameters.

RatikantaLenka1
New Contributor

Hi,

Thanks for your reply. Actually we are using Direction Serivce, and

there I can find no "findBestSequece" property.

https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#maxstopsreached

Thanks & Regards

Ratikant

0 Kudos
JohnGrayson
Esri Regular Contributor

If using the Directions dijit in 3.17, I would start by looking at some of the constructor parameters such as 'optimalRoute' and 'showOptimalRouteOption'.

RatikantaLenka1
New Contributor

Thanks for your suggestion. I will try.

0 Kudos