osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Bicycle routing ignores implicit access restrictions on motorroads

Open mangerlahn opened this issue 2 years ago • 1 comments

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

mangerlahn avatar Sep 08 '23 09:09 mangerlahn

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

tombay avatar Oct 04 '23 02:10 tombay