handle avoid motorway for foot and bicycle

This commit is contained in:
tombay 2024-09-20 16:02:33 +10:00 committed by GitHub
parent f90c90cb88
commit 41fa6987ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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