Skip to content

Commit

Permalink
change barrier_whitelist to barrier_blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalPP authored and Patrick Niklaus committed May 28, 2018
1 parent 3b4e2e8 commit c3d0efd
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions profiles/bicycle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c3d0efd

Please sign in to comment.