Select to view content in your preferred language

Directions widget

474
1
Jump to solution
12-19-2023 11:52 AM
ErsiLover
Occasional Contributor

Hello, I have a question regarding directions widget. When I have multiple stops, is there a servise or a function I can create or call that can give me the optimized/best route to visit all the stops?

0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

Hi @ErsiLover, thanks for posting your question here. Unfortunately, the Directions widget cannot reorder stops for you. However, we do have optimized routing available. Here is a link to the doc, and to an older, working proof-of-concept example.

https://developers.arcgis.com/documentation/mapping-apis-and-services/routing/optimized-routing/

https://noashx.github.io/presentations/DS_2022/5_ArcGIS_API_for_JavaScript_Vehicle_routing_problem.h...

 

View solution in original post

1 Reply
Noah-Sager
Esri Regular Contributor

Hi @ErsiLover, thanks for posting your question here. Unfortunately, the Directions widget cannot reorder stops for you. However, we do have optimized routing available. Here is a link to the doc, and to an older, working proof-of-concept example.

https://developers.arcgis.com/documentation/mapping-apis-and-services/routing/optimized-routing/

https://noashx.github.io/presentations/DS_2022/5_ArcGIS_API_for_JavaScript_Vehicle_routing_problem.h...