Skip to content

Commit

Permalink
change barrier_whitelist to barrier blacklist
Browse files Browse the repository at this point in the history
change barrier_whitelist to barrier blacklist  in foot profile
fix #5067 and #3890 and #4823
  • Loading branch information
MichalPP authored and Patrick Niklaus committed May 29, 2018
1 parent 8dd8ee1 commit 918e794
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions profiles/foot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,10 @@ function setup()
default_speed = walking_speed,
oneway_handling = 'specific', -- respect 'oneway:foot' but not 'oneway'

barrier_whitelist = Set {
'cycle_barrier',
'bollard',
'entrance',
'cattle_grid',
'border_control',
'toll_booth',
'sally_port',
'gate',
'lift_gate',
'no',
'kerb',
'block'
barrier_blacklist = Set {
'yes',
'wall',
'fence'
},

access_tag_whitelist = Set {
Expand Down Expand Up @@ -157,7 +148,7 @@ function process_node(profile, node, result)
local bollard = node:get_value_by_key("bollard")
local rising_bollard = bollard and "rising" == bollard

if not profile.barrier_whitelist[barrier] and not rising_bollard then
if profile.barrier_blacklist[barrier] and not rising_bollard then
result.barrier = true
end
end
Expand Down

0 comments on commit 918e794

Please sign in to comment.