Skip to content

Commit

Permalink
Don't route on proposed ways
Browse files Browse the repository at this point in the history
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
Project-OSRM/osrm-backend#4258 and then
accidentally reverted when pull request with title "profiles api v2"
at Project-OSRM/osrm-backend#4072 was merged.
This commit restores the original change for bike and foot profiles.
  • Loading branch information
lliehu committed Jun 24, 2023
1 parent 6bfa8aa commit 81e1df9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bike.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ function setup()

avoid = Set {
'impassable',
'construction'
'construction',
'proposed'
},


Expand Down
3 changes: 2 additions & 1 deletion foot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function setup()
},

avoid = Set {
'impassable'
'impassable',
'proposed'
},

speeds = Sequence {
Expand Down

0 comments on commit 81e1df9

Please sign in to comment.