Introduces a construction whitelist in profiles

This commit is contained in:
Daniel J. Hofmann
2017-07-19 15:33:19 +02:00
committed by Patrick Niklaus
parent 48824c4c8a
commit 64e4b7eaa0
4 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -521,7 +521,7 @@ function WayHandlers.blocked_ways(profile,way,result,data)
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