2012-10-05 10:15:47 -04:00
|
|
|
@routing @maxspeed @car
|
|
|
|
Feature: Car - Max speed restrictions
|
2012-10-02 07:22:14 -04:00
|
|
|
|
|
|
|
Background: Use specific speeds
|
2012-12-16 07:36:47 -05:00
|
|
|
Given the profile "car"
|
2012-10-02 07:22:14 -04:00
|
|
|
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
|
2013-01-19 07:04:58 -05:00
|
|
|
| nodes | highway | maxspeed |
|
|
|
|
| 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-11-12 10:41:08 -05:00
|
|
|
Scenario: Car - Ignore maxspeed when higher than way 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% |
|
2013-01-19 07:04:58 -05:00
|
|
|
| b | c | bc | 144s ~10% |
|
2013-02-03 09:42:14 -05:00
|
|
|
|
|
|
|
@todo
|
|
|
|
Scenario: Car - Forward/backward maxspeed
|
|
|
|
Given the node map
|
|
|
|
| a | b | c | d | e | f | g | h |
|
|
|
|
|
|
|
|
And a grid size of 100 meters
|
|
|
|
|
|
|
|
And the shortcuts
|
|
|
|
| key | value |
|
|
|
|
| car | 12s ~10% |
|
|
|
|
| run | 73s ~10% |
|
|
|
|
| walk | 170s ~10% |
|
|
|
|
| snail | 720s ~10% |
|
|
|
|
|
|
|
|
Then routability should be
|
|
|
|
| maxspeed | maxspeed:forward | maxspeed:backward | forw | backw |
|
|
|
|
| | | | car | car |
|
|
|
|
| 10 | | | run | run |
|
|
|
|
| | 10 | | run | car |
|
|
|
|
| | | 10 | car | run |
|
|
|
|
| 1 | 10 | | run | snail |
|
|
|
|
| 1 | | 10 | snail | run |
|
|
|
|
| 1 | 5 | 10 | walk | run |
|