From b6449cba03fa13aeaac08df5eb807ad863f58da5 Mon Sep 17 00:00:00 2001 From: MichalPP Date: Sat, 12 May 2018 13:30:25 +0200 Subject: [PATCH 1/2] 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 From 1d83377a97699b42fe776c1b1ae41ac7bc05c976 Mon Sep 17 00:00:00 2001 From: MichalPP Date: Tue, 29 May 2018 15:31:03 +0200 Subject: [PATCH 2/2] allow routing over barrier=some_tag --- features/foot/barrier.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/foot/barrier.feature b/features/foot/barrier.feature index df95390f5a2..f8cffdd79ed 100644 --- a/features/foot/barrier.feature +++ b/features/foot/barrier.feature @@ -19,7 +19,7 @@ Feature: Barriers | entrance | x | | wall | | | fence | | - | some_tag | | + | some_tag | x | | block | x | Scenario: Foot - Access tag trumphs barriers