test maxspeed for bicycles (yes it's possible)
This commit is contained in:
parent
ea90627e02
commit
7282e543ca
33
features/bicycle/maxspeed.feature
Normal file
33
features/bicycle/maxspeed.feature
Normal file
@ -0,0 +1,33 @@
|
||||
@routing @maxspeed @bicycle
|
||||
Feature: Bike - Max speed restrictions
|
||||
|
||||
Background: Use specific speeds
|
||||
Given the speedprofile "bicycle"
|
||||
|
||||
Scenario: Bike - Respect maxspeeds when lower that way type speed
|
||||
Given the node map
|
||||
| a | b | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | maxspeed |
|
||||
| ab | residential | |
|
||||
| bc | residential | 10 |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | time |
|
||||
| a | b | ab | 20s ~5% |
|
||||
| b | c | bc | 36s ~5% |
|
||||
|
||||
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% |
|
@ -1,5 +1,5 @@
|
||||
@routing @maxspeed
|
||||
Feature: Max speed restrictions
|
||||
@routing @maxspeed @car
|
||||
Feature: Car - Max speed restrictions
|
||||
|
||||
Background: Use specific speeds
|
||||
Given the speedprofile "car"
|
||||
|
Loading…
Reference in New Issue
Block a user