-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Trip service #5647
Comments
Can you supply the API calls you're making? By default, the Try adding |
I think I should pass this |
I'm having a similar issue and wondering how to have roundtrip=false without the need to explicitly specify the destination. This seems to me like a significant limitation of the trip service as realistically roundtrip=false is unusable, no? How can I know what the optimal destination is? @danpat Is there some work around to figuring out the destination that you can think off? any help would be greatly appreciated. |
Someone needs to add this feature to here: https://github.com/Project-OSRM/osrm-backend/blob/master/src/engine/plugins/trip.cpp#L93 The algorithms used always construct a round-trip. To generate non-round-trips, the we modify the cost table before running the algorithm, then do some extra work to make sure the returned result starts at the expected location. For the open destination option, what you'd need to do is insert a new fake node into the table. Then set:
This would ensure that the round trip included the leg "Fake node" -> "start node" - you would then emit results starting at start node, and stopping when "Fake node" is encountered in the round-trip. This is basically what the above linked function is doing already for fixed start/end, but I think you might need to go to the extra step of inserting a fake column in the table because of the asymmetrical costs you need to the fake node. It might be possible to re-cost the table in-place to achieve the open destination option, but I'll leave that as an exercise for the implementer to try. |
I'm still running into issues with the Trip service. Are there any known workarounds to getting the trip service to calculate with |
Need this feature to be merged! it's especially useful👏🏻 |
We have an issue on the OSRM routing system which appears to be a bug. We have a set of points on which we'd like to use the optimize: true option in order to achieve the best path.
The problem is that when we position one of these points at the very center of a roundabout, the point is "ignored" and pushed to last in the line even though it is closest to the origin point
how it is supposed to work:
expected result:

actual result:

The text was updated successfully, but these errors were encountered: