From d431dc3884557668d7c5f59b4dd9b46efef89141 Mon Sep 17 00:00:00 2001 From: MichalPP Date: Sat, 12 May 2018 13:33:08 +0200 Subject: [PATCH 1/2] change barrier_whitelist to barrier_blacklist --- profiles/bicycle.lua | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/profiles/bicycle.lua b/profiles/bicycle.lua index f08bcebe26d..0cd3a62c9be 100644 --- a/profiles/bicycle.lua +++ b/profiles/bicycle.lua @@ -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 From abd8409f1247237b194a660cd8610e325752f45e Mon Sep 17 00:00:00 2001 From: MichalPP Date: Sat, 19 May 2018 10:33:55 +0200 Subject: [PATCH 2/2] blacklisting barriers allow routing blacklisting barriers allow routing over barrier=some_tag --- features/bicycle/barrier.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/bicycle/barrier.feature b/features/bicycle/barrier.feature index a23eee54c9b..ae4ab579ce8 100644 --- a/features/bicycle/barrier.feature +++ b/features/bicycle/barrier.feature @@ -19,7 +19,7 @@ Feature: Barriers | entrance | x | | wall | | | fence | | - | some_tag | | + | some_tag | x | | block | x | Scenario: Bike - Access tag trumphs barriers