osrm-backend
osrm-backend copied to clipboard
Bicycle routing ignores implicit access restrictions on motorroads
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.
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