Skip to content

Improve access restriction handling for bicycle routing - #870

Merged
karussell merged 1 commit into
graphhopper:masterfrom
ratrun:hismaster
Nov 14, 2016
Merged

karussell merged 1 commit into
graphhopper:masterfrom
ratrun:hismaster

Conversation

@ratrun

@ratrun ratrun commented Nov 12, 2016 •

Copy link
Copy Markdown
Contributor

Give highway=cycleway higher preference compared to access restrictions. The change was triggered by the discussion in #863 about allowing a combination of highway=cycleway with "vehicle=no". Also BikeFlagEncoder access restriction testcases are improved for similar cases.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind to remove the double brackets (way....)? Also for the above statement

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I can see why you moved this before the improved 'has bicylce tag' check. Would you mind to add a test for sac_scale that would fail if put afterwards?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a test for this, which failed. I would not have recognized this otherwise!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, great :)

@karussell

Copy link
Copy Markdown
Member

Thanks!

@karussell karussell added this to the 0.9 milestone Nov 12, 2016
Give highway=cycleway higher preference compared to access restrictions. The change was triggered by the discussion in issue#863 about allowing a combination of highway=cycleway with "vehicle=no". Also BikeFlagEncoder access restriction testcases are improved for similar cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants