osrm-backend/features/testbot/weight.feature

38 lines
771 B
Gherkin
Raw Normal View History

@routing @weight
Feature: Choosing route based on length, speed, etc
2012-09-30 07:17:19 -04:00
Background:
Given the speedprofile "testbot"
Scenario: Pick the geometrically shortest route, way types being equal
Given the node map
| | s | |
| | t | |
| a | | b |
And the ways
2012-09-30 07:17:19 -04:00
| nodes | highway |
| atb | primary |
| asb | primary |
When I route I should get
| from | to | route |
| a | b | atb |
2012-09-30 07:17:19 -04:00
| b | a | atb |
2012-09-30 07:17:19 -04:00
Scenario: Pick the shortest travel time, even when it's longer
Given the node map
2012-09-30 07:17:19 -04:00
| | p | |
| a | s | b |
And the ways
| nodes | highway |
| apb | primary |
| asb | secondary |
2012-09-30 07:17:19 -04:00
When I route I should get
| from | to | route |
| a | b | apb |
| b | a | apb |