osrm-backend/features/car/maxspeed.feature

58 lines
1.6 KiB
Gherkin
Raw Normal View History

@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
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 |
| 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 |
| 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
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 | |
| 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 |
| a | b | ab | 144s ~10% |
| b | c | bc | 144s ~10% |
2013-01-18 16:10:11 -05:00
@oppposite @todo
Scenario: Car - Forward/backward maxspeed
Given the node map
| a | b | c | d | e |
And the ways
| nodes | highway | maxspeed:forward | maxspeed:backward |
| ab | primary | | |
| bc | primart | 18 | 9 |
| cd | primart | | 9 |
| de | primart | 9 | |
When I route I should get
| from | to | route | time |
| a | b | ab | 10s |
| b | a | ab | 10s |
| b | c | bc | 20s |
| c | b | bc | 40s |
| c | d | cd | 10s |
| d | c | cd | 20s |
| d | e | de | 20s |
| e | d | de | 10s |