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
},
barrier_blacklist = Set {
'yes',
'wall',
'fence'
barrier_whitelist = Set {
'sump_buster',
'bus_trap',
'cycle_barrier',
'bollard',
'entrance',
'cattle_grid',
'border_control',
'toll_booth',
'sally_port',
'gate',
'lift_gate',
'no',
'block'
},
access_tag_whitelist = Set {
@ -236,7 +246,7 @@ function process_node(profile, node, result)
else
local barrier = node:get_value_by_key("barrier")
if barrier and "" ~= barrier then
if profile.barrier_blacklist[barrier] then
if not profile.barrier_whitelist[barrier] then
result.barrier = true
end
end