osrm-backend/features/bicycle/ferry.feature

69 lines
2.3 KiB
Gherkin
Raw Normal View History

@routing @bicycle @ferry
2012-10-01 07:27:08 -04:00
Feature: Bike - Handle ferry routes
2013-08-29 13:29:13 -04:00
Background:
Given the profile "bicycle"
Scenario: Bike - Ferry route
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
d
e f g
"""
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway | route | bicycle |
| abc | primary | | |
| cde | | ferry | yes |
| efg | primary | | |
When I route I should get
| from | to | route |
| a | g | abc,cde,efg,efg |
| b | f | abc,cde,efg,efg |
| e | c | cde,cde |
| e | b | cde,abc,abc |
| e | a | cde,abc,abc |
| c | e | cde,cde |
| c | f | cde,efg,efg |
| c | g | cde,efg,efg |
2013-08-29 13:29:13 -04:00
Scenario: Bike - Ferry duration, single node
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c d
e f
g h
i j
"""
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway | route | bicycle | duration |
| ab | primary | | | |
| cd | primary | | | |
| ef | primary | | | |
| gh | primary | | | |
| ij | primary | | | |
| bc | | ferry | yes | 0:01 |
| be | | ferry | yes | 0:10 |
| bg | | ferry | yes | 1:00 |
| bi | | ferry | yes | 10:00 |
Scenario: Bike - Ferry duration, multiple nodes
Given the node map
2016-09-30 03:33:08 -04:00
"""
2017-07-07 07:25:34 -04:00
x a b c d y
2016-09-30 03:33:08 -04:00
"""
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway | route | bicycle | duration |
| xa | primary | | | |
| yd | primary | | | |
| abcd | | ferry | yes | 1:00 |
When I route I should get
2017-07-07 07:25:34 -04:00
| from | to | route | time |
| a | d | abcd,abcd | 3600s |
| d | a | abcd,abcd | 3600s |