Skip to content

Fix buses trying to warp between lanes between stops - #892

Draft
dabreegster wants to merge 1 commit into
mainfrom
bus_warp
Draft

Fix buses trying to warp between lanes between stops#892
dabreegster wants to merge 1 commit into
mainfrom
bus_warp

Conversation

@dabreegster

Copy link
Copy Markdown
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.

1 participant