osrm-backend/features/bicycle/destination.feature

70 lines
1.6 KiB
Gherkin
Raw Normal View History

@routing @bicycle @destination
2012-09-30 06:01:56 -04:00
Feature: Destination only, no passing through
Background:
Given the speedprofile "bicycle"
2012-09-30 06:01:56 -04:00
Scenario: Destination only street
Given the node map
| a | | | | |
| | b | c | d | |
| | | | | e |
And the ways
| nodes | access |
| ab | |
| bcd | destination |
| de | |
When I route I should get
| from | to | route |
| a | b | ab |
| a | c | ab,bcd |
| a | d | ab,bcd |
| a | e | ab,bcd,de |
| e | d | de |
| e | c | de,bcd |
| e | b | de,bcd |
| e | a | de,bcd,ab |
| b | c | bcd |
| b | d | bcd |
| d | c | bcd |
| d | b | bcd |
Scenario: Series of destination only streets
Given the node map
| a | | c | | e |
| | b | | d | |
And the ways
| nodes | access |
| ab | |
| bc | destination |
| cd | destination |
| de | destination |
When I route I should get
| from | to | route |
| a | b | ab |
| a | c | ab |
| a | d | ab |
| a | e | ab |
Scenario: Routing inside a destination only area
Given the node map
| a | | c | | e |
| | b | | d | |
And the ways
| nodes | access |
| ab | destination |
| bc | destination |
| cd | destination |
| de | destination |
When I route I should get
| from | to | route |
| a | e | ab,bc,cd,de |
| e | a | de,cd,bc,ab |
| b | d | bc,cd |
| d | b | cd,bc |