From 918e794d6a5a6211851ab134fdaba7d0cf9e7d5e Mon Sep 17 00:00:00 2001 From: MichalPP Date: Sat, 12 May 2018 13:30:25 +0200 Subject: [PATCH] change barrier_whitelist to barrier blacklist change barrier_whitelist to barrier blacklist in foot profile fix #5067 and #3890 and #4823 --- profiles/foot.lua | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/profiles/foot.lua b/profiles/foot.lua index f0527337bf8..ea24706c86c 100644 --- a/profiles/foot.lua +++ b/profiles/foot.lua @@ -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 { @@ -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