2012-10-05 07:48:05 -04:00
|
|
|
@routing @bicycle @destination @todo
|
2012-10-01 07:27:08 -04:00
|
|
|
Feature: Bike - Destination only, no passing through
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Background:
|
|
|
|
Given the profile "bicycle"
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Destination only street
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a e
|
|
|
|
b c d
|
|
|
|
|
|
|
|
x y
|
|
|
|
"""
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
And the ways
|
|
|
|
| nodes | access |
|
|
|
|
| ab | |
|
|
|
|
| bcd | destination |
|
|
|
|
| de | |
|
|
|
|
| axye | |
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
When I route I should get
|
2016-03-23 08:04:23 -04:00
|
|
|
| from | to | route |
|
|
|
|
| a | b | ab,ab |
|
|
|
|
| a | c | ab,bcd,bcd |
|
|
|
|
| a | d | ab,bcd,bcd |
|
|
|
|
| a | e | axye,axye |
|
|
|
|
| e | d | de,de |
|
|
|
|
| e | c | de,bcd,bcd |
|
|
|
|
| e | b | de,bcd,bcd |
|
|
|
|
| e | a | axye,axye |
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Destination only street
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a e
|
|
|
|
b c d
|
|
|
|
|
|
|
|
x y
|
|
|
|
"""
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
And the ways
|
|
|
|
| nodes | access |
|
|
|
|
| ab | |
|
|
|
|
| bc | destination |
|
|
|
|
| cd | destination |
|
|
|
|
| de | |
|
|
|
|
| axye | |
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
When I route I should get
|
2016-03-23 08:04:23 -04:00
|
|
|
| from | to | route |
|
|
|
|
| a | b | ab,ab |
|
|
|
|
| a | c | ab,bc,bc |
|
|
|
|
| a | d | ab,bc,cd,cd |
|
|
|
|
| a | e | axye,axye |
|
|
|
|
| e | d | de,de |
|
|
|
|
| e | c | de,cd,cd |
|
|
|
|
| e | b | de,cd,bc,bc |
|
|
|
|
| e | a | axye,axye |
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Routing inside a destination only area
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a c e
|
|
|
|
b d
|
|
|
|
x y
|
|
|
|
"""
|
2013-08-29 13:29:13 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | access |
|
|
|
|
| ab | destination |
|
|
|
|
| bc | destination |
|
|
|
|
| cd | destination |
|
|
|
|
| de | destination |
|
|
|
|
| axye | |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-03-23 08:04:23 -04:00
|
|
|
| from | to | route |
|
|
|
|
| a | e | ab,bc,cd,de,de |
|
|
|
|
| e | a | de,cd,bc,ab,ab |
|
|
|
|
| b | d | bc,cd,cd |
|
|
|
|
| d | b | cd,bc,bc |
|