osrm-backend/features/testbot/weight.feature

39 lines
847 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:
2012-12-16 07:36:47 -05:00
Given the profile "testbot"
2012-09-30 07:17:19 -04:00
Scenario: Pick the geometrically shortest route, way types being equal
Given the node map
2012-10-04 08:39:59 -04:00
| | | s | | |
| | | t | | |
| x | a | | b | y |
And the ways
2012-09-30 07:17:19 -04:00
| nodes | highway |
2012-10-04 08:39:59 -04:00
| xa | primary |
| by | primary |
2012-09-30 07:17:19 -04:00
| atb | primary |
| asb | primary |
When I route I should get
2012-10-04 08:39:59 -04:00
| from | to | route |
| x | y | xa,atb,by |
| y | x | by,atb,xa |
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 |