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

Fix buses trying to warp between lanes between stops #892

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dabreegster
Copy link
Collaborator

#372

This situation was previously happening: a bus stop is on the rightmost lane of a road, and the path to the next bus stop immediately requires a turn from the leftmost lane. Before some extra validation in the previous PR, the bus would just warp in the simulation and crash things.
Screenshot from 2022-04-18 10-48-20

But really the fix is to force pathfinding from that exact start lane when it's a bus. (Most vehicle drives exit from a driveway and are allowed to immediately enter any starting lane.) This PR probably does that. The one test case I was looking at in SP actually isn't routable with this new constraint, because there's a turn restriction at https://www.openstreetmap.org/node/2389060511.

I need to regenerate maps and prebaked data and validate still.

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.

None yet

1 participant