37 lines
1.1 KiB
Gherkin
37 lines
1.1 KiB
Gherkin
@routing @maxspeed @testbot
|
|
Feature: Testbot - Acceleration profiles
|
|
|
|
Background: Use specific speeds
|
|
Given the profile "testbot"
|
|
Given a grid size of 1000 meters
|
|
|
|
Scenario: Testbot - Use stoppage penalty at waypoints
|
|
Given the node map
|
|
"""
|
|
a 1 2 3 4 5 b
|
|
"""
|
|
|
|
And the ways
|
|
| nodes | highway | maxspeed:forward | maxspeed:backward |
|
|
| ab | trunk | 60 | 45 |
|
|
|
|
And the query options
|
|
| stoppage_penalty | 5,100 |
|
|
|
|
When I route I should get
|
|
| from | to | route | time |
|
|
| a | b | ab,ab | 412.3s |
|
|
|
|
When I route I should get
|
|
| from | to | route | time |
|
|
| b | a | ab,ab | 505.9s |
|
|
|
|
When I route I should get
|
|
| from | to | route | time |
|
|
| a | a | ab,ab | 0s |
|
|
|
|
When I request a travel time matrix I should get
|
|
| | a | b |
|
|
| a | 0 | 412.3 |
|
|
| b | 505.9 | 0 |
|