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

Remove force-loop checks for routes with u-turns #6858

Merged
merged 1 commit into from
May 5, 2024

Conversation

mjjbell
Copy link
Member

@mjjbell mjjbell commented May 5, 2024

Issue

This is a fix for observation 1 discussed in #6852

Each leg of a via-route supporting waypoint u-turns does not need to consider force-loops.
Negative weight checks are sufficient to prevent incorrect results when waypoints are on the same edge.

I've not added additional tests, as the change is sufficiently simple, and there are enough existing continue_straight=false cucumber tests to verify it works.
I will add additional tests for the more complicated fixes.

Tasklist

Requirements / Relations

#6852

Each leg of a via-route supporting u-turns does not need to consider
force-loops. Negative weight checks are sufficient to prevent
incorrect results when waypoints are on the same edge.
@mjjbell mjjbell merged commit b503e96 into Project-OSRM:master May 5, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants