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

restriction "no_straight_on" ignored #1019

Closed
malenki opened this issue May 16, 2014 · 2 comments
Closed

restriction "no_straight_on" ignored #1019

malenki opened this issue May 16, 2014 · 2 comments

Comments

@malenki
Copy link

malenki commented May 16, 2014

OSRM doesn't seem to know restriction=no_straight_on.
For example going this way is forbidden http://osrm.at/7qY
and wouldn't occur with OSRM if it would recognise this restriction.
Then the route would look like this: http://osrm.at/7r0

@DennisOSRM
Copy link
Collaborator

Thanks for reporting. This one should be straight-forward to fix. Turn instructions on a chain of degree 2 nodes were ignored by accident. This is unrelated to the restriction tag, but happens when a simple chain of nodes that model road curvature are compressed.

DennisOSRM added a commit that referenced this issue May 19, 2014
- fix ignored turn restriction on chains of degree-2 nodes
- add a cucumber test to test for potential regressions
@DennisOSRM
Copy link
Collaborator

fixed via 4ff1091

DennisOSRM added a commit that referenced this issue May 20, 2014
- fix ignored turn restriction on chains of degree-2 nodes
- add a cucumber test to test for potential regressions
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

No branches or pull requests

2 participants