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

Bicycle routing ignores implicit access restrictions on motorroads #6697

Open
mangerlahn opened this issue Sep 8, 2023 · 1 comment · May be fixed by #6708
Open

Bicycle routing ignores implicit access restrictions on motorroads #6697

mangerlahn opened this issue Sep 8, 2023 · 1 comment · May be fixed by #6708

Comments

@mangerlahn
Copy link

Issue

Please consider the following example

OSRM ignores the motorroad tag on a given highway. Motor roads implicitly block access to pedestrians and cyclists. However, OSMR routes via the given highway.

Screenshot 2023-09-08 at 11 38 52
@tombay
Copy link

tombay commented Oct 4, 2023

workaround.
As a workaround :
In bicycle.lua (and foot.lua) add 'motorroad' to the avoid Set.
in way_handler.lua add a check to the function WayHandlers.blocked_ways.

-- motorroad
if profile.avoid.motorroad and way:get_value_by_key("motorroad") == "yes" then
return false
end

mangerlahn added a commit to mangerlahn/osrm-backend that referenced this issue Oct 5, 2023
mangerlahn added a commit to mangerlahn/osrm-backend that referenced this issue Oct 5, 2023
@mangerlahn mangerlahn linked a pull request Oct 5, 2023 that will close this issue
6 tasks
tombay added a commit to tombay/osrm-backend that referenced this issue Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants