Open mattwigway opened 2 years ago
Thanks for the report @mattwigway, I've added it to the list in meta-ticket #764. Although we may not be working on this in the immediate future, I do still hope to do a round of turn restriction improvements.
If/when you do, you may find the test suite in mattwigway/OpenStreetMapGraphBuilder.jl useful. I wanted to make sure that the turn restriction code was right even in weird (ahem) corner cases like this, so ended up creating a custom OSM file with a small self contained network with a bunch of unusual restrictions/situations, and test cases to go along with it. Feel free to borrow if it's helpful.
The
TarjanIslandPruner
has a comment that says:In developing turn restriction code for another piece of routing software (my favorite Sunday morning activity :wink:), I discovered there actually is an island created by turn restrictions just north of the Conveyal DC office where I probably wrote this comment. This way is a parking lot for the DC police district 4, and has both no-right-turn and no-left-turn restrictions from Georgia Ave. If a destination is snapped here, I think routing will fail. Still not sure it's worth addressing.