Skip to content

Fix missing instructions at forks where side road is slower - #3283

Open
modhtom wants to merge 1 commit into
graphhopper:masterfrom
modhtom:fix/ambiguous-forks-slower-roads
Open

modhtom wants to merge 1 commit into
graphhopper:masterfrom
modhtom:fix/ambiguous-forks-slower-roads

Conversation

@modhtom

@modhtom modhtom commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Fixes missing instructions at splits (Y-forks) where the side road is significantly slower.

Added a fallback check using EdgeIterator. If the instruction is about to be suppressed due to speed, we check the geometry of the outgoing edges. If we find a valid edge with a shallow angle (< 1.3 rad), we force the instruction to be generated.

I tested this on this road and it works. The turn angle there is 1.19, which is captured by the 1.3 threshold, correctly returning a "Turn slight right".

Image

This branch has not been deployed

No deployments
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