From 41fa6987ce22e60aa10f4fe9b02b5239cf55d6d0 Mon Sep 17 00:00:00 2001 From: tombay Date: Fri, 20 Sep 2024 16:02:33 +1000 Subject: [PATCH] handle avoid motorway for foot and bicycle --- profiles/lib/way_handlers.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/lib/way_handlers.lua b/profiles/lib/way_handlers.lua index b13410235..112c520b2 100644 --- a/profiles/lib/way_handlers.lua +++ b/profiles/lib/way_handlers.lua @@ -613,6 +613,11 @@ end -- handle various that can block access function WayHandlers.blocked_ways(profile,way,result,data) + -- motorroad + if profile.avoid.motorroad and way:get_value_by_key("motorroad") == "yes" then + return false + end + -- areas if profile.avoid.area and way:get_value_by_key("area") == "yes" then return false