Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.42k stars 3.4k forks source link

How to get a polyline through a list of waypoints that respects the order of the waypoints #7057

Closed edadma closed 2 weeks ago

edadma commented 2 weeks ago

Is there a way of using OSRM to get a polyline route geometry that runs through a list of waypoints without reordering them? In my tests, OSRM tends to reorder the waypoints.

danpat commented 2 weeks ago

If you're doing /route/v1, then it doesn't re-order the waypoints. If you use /trip/v1 then it will re-order the waypoints to find the overall fastest path.

If you want a clearer answer than that, you'll need to provide a clearer question, including an example that demonstrates the problem.