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

no_u_turn is ignored #2570

Open
easbar opened this issue May 3, 2022 · 1 comment
Open

no_u_turn is ignored #2570

easbar opened this issue May 3, 2022 · 1 comment
Labels

Comments

@easbar
Copy link
Member

easbar commented May 3, 2022

https://discuss.graphhopper.com/t/curbside-right-and-turning-circles/7232/8

@easbar easbar added the bug label May 3, 2022
@easbar
Copy link
Member Author

easbar commented May 3, 2022

This is because the global u-turn costs overrule those set in the turn cost storage:

if (edgeFrom == edgeTo) {
// note that the u-turn costs overwrite any turn costs set in TurnCostStorage
tCost = uTurnCosts;

... but that does not really make any sense? I think I put this comment there, but only because historically we always did it like this, probably because at one point we had several different 'u-turn' TraversalModes...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant