From 8f804581c0092834173744adaa4a8eb71567de65 Mon Sep 17 00:00:00 2001 From: AlanBell Date: Fri, 7 Nov 2014 10:29:25 +0000 Subject: [PATCH 1/2] fix #1255 assume lift gates are passable lift gates are commonly found on industrial parks or businesses, delivery drivers need to route to these, most gates are permissive and open in daytime, this patch won't route through gates where access is specifically no. --- profiles/car.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/car.lua b/profiles/car.lua index ad58cd86ef4..25291a530dc 100644 --- a/profiles/car.lua +++ b/profiles/car.lua @@ -1,7 +1,7 @@ -- Begin of globals --require("lib/access") --function temporarily inlined -barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["checkpoint"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["entrance"] = true } +barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["checkpoint"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["lift_gate"] = true, ["no"] = true, ["entrance"] = true } access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = true, ["permissive"] = true, ["designated"] = true } access_tag_blacklist = { ["no"] = true, ["private"] = true, ["agricultural"] = true, ["forestry"] = true, ["emergency"] = true } access_tag_restricted = { ["destination"] = true, ["delivery"] = true } From 9a8f9cae6d5618b5babe9a719fed33076340c233 Mon Sep 17 00:00:00 2001 From: AlanBell Date: Tue, 11 Nov 2014 09:16:57 +0000 Subject: [PATCH 2/2] test case for lift gate access --- features/car/barrier.feature | 1 + 1 file changed, 1 insertion(+) diff --git a/features/car/barrier.feature b/features/car/barrier.feature index e6370498609..7c89688c9e8 100644 --- a/features/car/barrier.feature +++ b/features/car/barrier.feature @@ -10,6 +10,7 @@ Feature: Car - Barriers | | x | | bollard | | | gate | x | + | lift_gate | x | | cattle_grid | x | | border_control | x | | toll_booth | x |