From 81e1df9af373fe14bc677a292e4f9c0a845e9aa7 Mon Sep 17 00:00:00 2001 From: Lasse Liehu Date: Sat, 24 Jun 2023 18:10:35 +0300 Subject: [PATCH] Don't route on proposed ways Routing on proposed ways was blacklisted only for car profile. This adds the same blacklisting also for foot and bike profiles. It looks like this behavior was added in https://github.com/Project-OSRM/osrm-backend/pull/4258 and then accidentally reverted when pull request with title "profiles api v2" at https://github.com/Project-OSRM/osrm-backend/pull/4072 was merged. This commit restores the original change for bike and foot profiles. --- bike.lua | 3 ++- foot.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bike.lua b/bike.lua index c2ef7ed..1e6236d 100644 --- a/bike.lua +++ b/bike.lua @@ -210,7 +210,8 @@ function setup() avoid = Set { 'impassable', - 'construction' + 'construction', + 'proposed' }, diff --git a/foot.lua b/foot.lua index 98b59db..2325416 100644 --- a/foot.lua +++ b/foot.lua @@ -98,7 +98,8 @@ function setup() }, avoid = Set { - 'impassable' + 'impassable', + 'proposed' }, speeds = Sequence {