2015-02-26 10:28:04 -05:00
|
|
|
@routing @bicycle @bridge
|
|
|
|
Feature: Bicycle - Handle movable bridge
|
|
|
|
|
|
|
|
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
|
|
|
|
| a | b | c | | |
|
|
|
|
| | | d | | |
|
|
|
|
| | | e | f | g |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | bridge | bicycle |
|
|
|
|
| abc | primary | | |
|
|
|
|
| cde | | movable | yes |
|
|
|
|
| efg | primary | | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| from | to | route | modes |
|
2015-02-26 11:17:43 -05:00
|
|
|
| a | g | abc,cde,efg | 1,5,1 |
|
|
|
|
| b | f | abc,cde,efg | 1,5,1 |
|
|
|
|
| e | c | cde | 5 |
|
|
|
|
| e | b | cde,abc | 5,1 |
|
|
|
|
| e | a | cde,abc | 5,1 |
|
|
|
|
| c | e | cde | 5 |
|
|
|
|
| c | f | cde,efg | 5,1 |
|
|
|
|
| c | g | cde,efg | 5,1 |
|
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
|
|
|
|
| a | b | c | | |
|
|
|
|
| | | d | | |
|
|
|
|
| | | e | f | g |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | bridge | duration |
|
|
|
|
| abc | primary | | |
|
|
|
|
| cde | | movable | 00:05:00 |
|
|
|
|
| efg | primary | | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| from | to | route | modes | speed |
|
2015-02-26 11:17:43 -05:00
|
|
|
| a | g | abc,cde,efg | 1,5,1 | 5 km/h |
|
2015-08-21 22:01:24 -04:00
|
|
|
| b | f | abc,cde,efg | 1,5,1 | 4 km/h |
|
2015-02-26 11:17:43 -05:00
|
|
|
| c | e | cde | 5 | 2 km/h |
|
|
|
|
| e | c | cde | 5 | 2 km/h |
|