Skip to content
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

Add the continue straight in waypoint option #7065

Open
Martin317 opened this issue Nov 7, 2024 · 1 comment
Open

Add the continue straight in waypoint option #7065

Martin317 opened this issue Nov 7, 2024 · 1 comment

Comments

@Martin317
Copy link

Feature

Is possible to add the feature continue straight to the trip endpoint?

I see a lot of people asking for it and i found it very useful.

In some cases we use the trip for optimize the route and navigate through it in a vehicle, the vehicles cannot u-turn in the middle of the street.

I understand the complexity of the algorithm, osrm is awesome. I think this feature makes it better yet.

thanks

@jcoupey
Copy link

jcoupey commented Nov 7, 2024

I think the hard part here is that the trip calculation relies on the travel time/distance matrices, which are essentially information on pairs of locations.

On the other hand avoiding a u-turn at B in a A->B->C scenario is dependent on previous and next locations A and C. So the cost of route legs in a continue_straight context is by nature depending on triplets of locations. That is fixed in a route context where the waypoints are ordered, but the point of the trip endpoint is precisely to decide ordering...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants