osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Shortest path ignoring waypoint order

Open sedir opened this issue 13 years ago • 11 comments

Hi guys, I looked everywhere and I didn't find a way to get this to work. Let's suppose I want to know the shortest path from node A to D, but I have to pass through B and C in the way. I dont care if I put the params (lat/lng) is this order A -> B -> C -> D or that A -> C -> B -> D because I should get the same result, the shortest path.

This feature is similar to Google Maps option optimizeWaypoints="true"

Is that possible with OSRM?

sedir avatar Apr 10 '13 07:04 sedir

it's not possible at the moment. what you're describing is essentially the travelling salesman problem - find the shortest way to visit a given list of points.

emiltin avatar Apr 10 '13 19:04 emiltin

It is not yet possible. But it is on the list of upcoming features.

DennisOSRM avatar Apr 15 '13 13:04 DennisOSRM

Hi DennisOSRM,

Any news update regarding that feature? :-)

ZupoLlask avatar Jun 03 '13 10:06 ZupoLlask

hi dennis, do you have an idea about when this feature will arrive?

emiltin avatar Jun 04 '14 11:06 emiltin

The distance matrix forms the basis for fast optimization of waypoint order?

emiltin avatar Jun 10 '14 13:06 emiltin

@emiltin yessir.

DennisOSRM avatar Jun 10 '14 13:06 DennisOSRM

Hi Dennis, is there any ETA on this feature?

emiltin avatar Jul 09 '14 07:07 emiltin

I think it would make more sense to use a travel time matrix since the route calculation is based on fastest and not shortest path. Is a travel time matrix in the plan?

dymo avatar Jul 09 '14 07:07 dymo

Is a travel time matrix in the plan?

@dymo Already implemented.

is there any ETA on this feature?

@emiltin not yet

DennisOSRM avatar Jul 09 '14 08:07 DennisOSRM

Work on this by @chaupow is tracked in this branch https://github.com/Project-OSRM/osrm-backend/tree/feature/round_trip

TheMarex avatar Jun 10 '15 15:06 TheMarex

This is now merged into develop.

TheMarex avatar Sep 04 '15 08:09 TheMarex