2015-02-26 10:28:04 -05:00
|
|
|
@routing @bicycle @bridge
|
2016-04-19 14:22:42 -04:00
|
|
|
Feature: Bicycle - Handle cycling
|
2015-02-26 10:28:04 -05:00
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "bicycle"
|
|
|
|
|
2016-03-04 15:11:05 -05:00
|
|
|
Scenario: Bicycle - Use a ferry route
|
2015-02-26 10:28:04 -05:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c
|
|
|
|
d
|
|
|
|
e f g
|
|
|
|
"""
|
2015-02-26 10:28:04 -05:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | bridge | bicycle |
|
|
|
|
| abc | primary | | |
|
|
|
|
| cde | | movable | yes |
|
|
|
|
| efg | primary | | |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-03-31 19:25:08 -04:00
|
|
|
| from | to | route | modes |
|
2016-04-19 14:22:42 -04:00
|
|
|
| a | g | abc,cde,efg,efg | cycling,cycling,cycling,cycling |
|
|
|
|
| b | f | abc,cde,efg,efg | cycling,cycling,cycling,cycling |
|
|
|
|
| e | c | cde,cde | cycling,cycling |
|
|
|
|
| e | b | cde,abc,abc | cycling,cycling,cycling |
|
|
|
|
| e | a | cde,abc,abc | cycling,cycling,cycling |
|
|
|
|
| c | e | cde,cde | cycling,cycling |
|
|
|
|
| c | f | cde,efg,efg | cycling,cycling,cycling |
|
|
|
|
| c | g | cde,efg,efg | cycling,cycling,cycling |
|
2015-02-26 10:28:04 -05:00
|
|
|
|
2016-03-04 15:11:05 -05:00
|
|
|
Scenario: Bicycle - Properly handle durations
|
2015-02-26 10:28:04 -05:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c
|
|
|
|
d
|
|
|
|
e f g
|
|
|
|
"""
|
2015-02-26 10:28:04 -05:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | bridge | duration |
|
|
|
|
| abc | primary | | |
|
|
|
|
| cde | | movable | 00:05:00 |
|
|
|
|
| efg | primary | | |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-03-31 19:25:08 -04:00
|
|
|
| from | to | route | modes | speed |
|
2016-04-19 14:22:42 -04:00
|
|
|
| a | g | abc,cde,efg,efg | cycling,cycling,cycling,cycling | 5 km/h |
|
|
|
|
| b | f | abc,cde,efg,efg | cycling,cycling,cycling,cycling | 4 km/h |
|
|
|
|
| c | e | cde,cde | cycling,cycling | 2 km/h |
|
|
|
|
| e | c | cde,cde | cycling,cycling | 2 km/h |
|