Introduces a construction whitelist in profiles
This commit is contained in:
committed by
Patrick Niklaus
parent
df0f407591
commit
7eafb48d20
@@ -520,7 +520,7 @@ function Handlers.handle_blocked_ways(way,result,data,profile)
|
||||
local construction = way:get_value_by_key('construction')
|
||||
|
||||
-- Of course there are negative tags to handle, too
|
||||
if construction and construction ~= 'no' and construction ~= 'widening' and construction ~= 'minor' then
|
||||
if construction and not profile.construction_whitelist[construction] then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user