2012-10-02 07:22:14 -04:00
|
|
|
@routing @maxspeed
|
|
|
|
Feature: Max speed restrictions
|
|
|
|
|
|
|
|
Background: Use specific speeds
|
|
|
|
Given the speedprofile "car"
|
|
|
|
Given a grid size of 1000 meters
|
|
|
|
|
2012-10-03 13:04:56 -04:00
|
|
|
Scenario: Car - Respect maxspeeds when lower that way type speed
|
2012-10-02 07:22:14 -04:00
|
|
|
Given the node map
|
|
|
|
| a | b | c |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | maxspeed |
|
2012-10-03 13:04:56 -04:00
|
|
|
| ab | trunk | |
|
|
|
|
| bc | trunk | 10 |
|
2012-10-02 07:22:14 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2012-10-02 07:46:40 -04:00
|
|
|
| from | to | route | time |
|
2012-10-03 13:04:56 -04:00
|
|
|
| a | b | ab | 42s ~10% |
|
2012-10-02 07:46:40 -04:00
|
|
|
| b | c | bc | 360s ~10% |
|
2012-10-02 07:22:14 -04:00
|
|
|
|
2012-10-03 13:04:56 -04:00
|
|
|
Scenario: Car - Use maxspeed when higher that way type speed
|
2012-10-02 07:22:14 -04:00
|
|
|
Given the node map
|
|
|
|
| a | b | c |
|
|
|
|
|
|
|
|
And the ways
|
2012-10-02 07:46:40 -04:00
|
|
|
| nodes | highway | maxspeed |
|
|
|
|
| ab | residential | |
|
2012-10-03 13:04:56 -04:00
|
|
|
| bc | residential | 85 |
|
2012-10-02 07:22:14 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2012-10-02 07:46:40 -04:00
|
|
|
| from | to | route | time |
|
2012-10-03 13:04:56 -04:00
|
|
|
| a | b | ab | 144s ~10% |
|
|
|
|
| b | c | bc | 42s ~10% |
|