Merge branch 'feature/opposite_direction' into develop
This commit is contained in:
@@ -36,3 +36,35 @@ Feature: Bike - Max speed restrictions
|
||||
| residential | | 40s ~10% |
|
||||
| residential | none | 40s ~10% |
|
||||
| residential | signals | 40s ~10% |
|
||||
|
||||
Scenario: Bike - Do not use maxspeed when higher that way type speed
|
||||
Given the node map
|
||||
| a | b | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | maxspeed |
|
||||
| ab | residential | |
|
||||
| bc | residential | 80 |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | time |
|
||||
| a | b | ab | 20s ~5% |
|
||||
| b | c | bc | 20s ~5% |
|
||||
|
||||
Scenario: Bike - Forward/backward maxspeed
|
||||
Given the shortcuts
|
||||
| key | value |
|
||||
| bike | 43s ~10% |
|
||||
| run | 73s ~10% |
|
||||
| walk | 145s ~10% |
|
||||
| snail | 720s ~10% |
|
||||
|
||||
Then routability should be
|
||||
| maxspeed | maxspeed:forward | maxspeed:backward | forw | backw |
|
||||
| | | | bike | bike |
|
||||
| 10 | | | run | run |
|
||||
| | 10 | | run | bike |
|
||||
| | | 10 | bike | run |
|
||||
| 1 | 10 | | run | snail |
|
||||
| 1 | | 10 | snail | run |
|
||||
| 1 | 5 | 10 | walk | run |
|
||||
|
||||
Reference in New Issue
Block a user