Skip to content

Commit

Permalink
Don't route on proposed ways (#6615)
Browse files Browse the repository at this point in the history
  • Loading branch information
lliehu committed Aug 20, 2023
1 parent 3f9347c commit d234c72
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
- FIXED: Added a variable to preprocessor guard in file osrm-backend/include/util/range_table.hpp to solve build error. [#6596](https://github.com/Project-OSRM/osrm-backend/pull/6596)
- FIXED: Ensure required file check in osrm-routed is correctly enforced. [#6655](https://github.com/Project-OSRM/osrm-backend/pull/6655)
- FIXED: Correct HTTP docs to reflect summary output dependency on steps parameter. [#6655](https://github.com/Project-OSRM/osrm-backend/pull/6655)
- Profiles:
- FIXED: Bicycle and foot profiles now don't route on proposed ways [#6615](https://github.com/Project-OSRM/osrm-backend/pull/6615)
- Routing:
- FIXED: Fix adding traffic signal penalties during compression [#6419](https://github.com/Project-OSRM/osrm-backend/pull/6419)
# 5.27.1
Expand Down
9 changes: 9 additions & 0 deletions features/bicycle/pushing.feature
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ Feature: Bike - Accessability of different way types
| construction | yes | | |
| construction | | yes | |

@proposed
Scenario: Bike - Don't allow routing on ways still being proposed
Then routability should be
| highway | foot | bicycle | proposed | bothw |
| primary | | | | x |
| proposed | | | | |
| proposed | yes | | yes | |
| proposed | | yes | yes | |

@roundabout
Scenario: Bike - Don't push bikes against oneway flow on roundabouts
Then routability should be
Expand Down
6 changes: 6 additions & 0 deletions features/foot/way.feature
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ Feature: Foot - Accessability of different way types
| highway | leisure | forw |
| (nil) | track | x |

Scenario: Foot - Proposed ways
Then routability should be
| highway | foot | proposed | forw |
| footway | | | x |
| proposed | | | |
| proposed | yes | yes | |
3 changes: 2 additions & 1 deletion profiles/bicycle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ function setup()

avoid = Set {
'impassable',
'construction'
'construction',
'proposed'
}
}
end
Expand Down
3 changes: 2 additions & 1 deletion profiles/foot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ function setup()
},

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

speeds = Sequence {
Expand Down

0 comments on commit d234c72

Please sign in to comment.