From 92406da19420db994f3a89f9ea7beeb15121a5ae Mon Sep 17 00:00:00 2001 From: Jeroen Hoek Date: Sun, 1 Dec 2019 16:43:25 +0100 Subject: [PATCH] Bicycle: treat use_sidepath as no access Fixes #5557. --- CHANGELOG.md | 1 + features/bicycle/access.feature | 1 + profiles/bicycle.lua | 8 +++++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a270608dc86..c8bb0f72da3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - CHANGED: allow routing past `barrier=arch` [#5352](https://github.com/Project-OSRM/osrm-backend/pull/5352) - CHANGED: default car weight was reduced to 2000 kg. [#5371](https://github.com/Project-OSRM/osrm-backend/pull/5371) - CHANGED: default car height was reduced to 2 meters. [#5389](https://github.com/Project-OSRM/osrm-backend/pull/5389) + - FIXED: treat `bicycle=use_sidepath` as no access on the tagged way. [#5622](https://github.com/Project-OSRM/osrm-backend/pull/5622) - Misc: - CHANGED: Reduce memory usage for raster source handling. [#5572](https://github.com/Project-OSRM/osrm-backend/pull/5572) diff --git a/features/bicycle/access.feature b/features/bicycle/access.feature index df8baa75711..787dd05e501 100644 --- a/features/bicycle/access.feature +++ b/features/bicycle/access.feature @@ -127,6 +127,7 @@ Feature: Bike - Access tags on ways | | | agricultural | | | | | forestry | | | | | delivery | | + | | | use_sidepath | | Scenario: Bike - Access tags on both node and way Then routability should be diff --git a/profiles/bicycle.lua b/profiles/bicycle.lua index a9ccc461146..223954f0219 100644 --- a/profiles/bicycle.lua +++ b/profiles/bicycle.lua @@ -56,7 +56,13 @@ function setup() 'private', 'agricultural', 'forestry', - 'delivery' + 'delivery', + -- When a way is tagged with `use_sidepath` a parallel way suitable for + -- cyclists is mapped and must be used instead (by law). This tag is + -- used on ways that normally may be used by cyclists, but not when + -- a signposted parallel cycleway is available. For purposes of routing + -- cyclists, this value should be treated as 'no access for bicycles'. + 'use_sidepath' }, restricted_access_tag_list = Set { },