change barrier_whitelist to barrier_blacklist
This commit is contained in:
parent
3b4e2e83ef
commit
c3d0efda93
@ -38,20 +38,10 @@ function setup()
|
||||
mode.pushing_bike
|
||||
},
|
||||
|
||||
barrier_whitelist = Set {
|
||||
'sump_buster',
|
||||
'bus_trap',
|
||||
'cycle_barrier',
|
||||
'bollard',
|
||||
'entrance',
|
||||
'cattle_grid',
|
||||
'border_control',
|
||||
'toll_booth',
|
||||
'sally_port',
|
||||
'gate',
|
||||
'lift_gate',
|
||||
'no',
|
||||
'block'
|
||||
barrier_blacklist = Set {
|
||||
'yes',
|
||||
'wall',
|
||||
'fence'
|
||||
},
|
||||
|
||||
access_tag_whitelist = Set {
|
||||
@ -245,7 +235,7 @@ function process_node(profile, node, result)
|
||||
else
|
||||
local barrier = node:get_value_by_key("barrier")
|
||||
if barrier and "" ~= barrier then
|
||||
if not profile.barrier_whitelist[barrier] then
|
||||
if profile.barrier_blacklist[barrier] then
|
||||
result.barrier = true
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user