remove barrier things

This commit is contained in:
MichalPP 2018-05-19 11:11:33 +02:00 committed by GitHub
parent 068e240739
commit acdfadb3aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,10 +39,20 @@ function setup()
mode.pushing_bike mode.pushing_bike
}, },
barrier_blacklist = Set { barrier_whitelist = Set {
'yes', 'sump_buster',
'wall', 'bus_trap',
'fence' 'cycle_barrier',
'bollard',
'entrance',
'cattle_grid',
'border_control',
'toll_booth',
'sally_port',
'gate',
'lift_gate',
'no',
'block'
}, },
access_tag_whitelist = Set { access_tag_whitelist = Set {
@ -235,8 +245,8 @@ function process_node(profile, node, result)
end end
else else
local barrier = node:get_value_by_key("barrier") local barrier = node:get_value_by_key("barrier")
if barrier and "" ~= barrier then if barrier and "" ~= barrier then
if profile.barrier_blacklist[barrier] then if not profile.barrier_whitelist[barrier] then
result.barrier = true result.barrier = true
end end
end end