osrm-backend/features/bicycle/bridge.feature

52 lines
2.1 KiB
Gherkin
Raw Normal View History

@routing @bicycle @bridge
Feature: Bicycle - Handle cycling
Background:
Given the profile "bicycle"
2017-05-18 08:27:28 -04:00
Scenario: Bicycle - Use a movable bridge
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
d
e f g
2016-09-30 03:33:08 -04:00
"""
And the ways
| nodes | highway | bridge | bicycle |
| abc | primary | | |
| cde | | movable | yes |
| efg | primary | | |
When I route I should get
| from | to | route | modes |
| 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 |
2016-03-04 15:11:05 -05:00
Scenario: Bicycle - Properly handle durations
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
d
e f g
2016-09-30 03:33:08 -04:00
"""
And the ways
| nodes | highway | bridge | duration |
| abc | primary | | |
| cde | | movable | 00:05:00 |
| efg | primary | | |
When I route I should get
2016-12-07 14:26:34 -05:00
| from | to | route | modes | speed |
| a | g | abc,cde,efg,efg | cycling,cycling,cycling,cycling | 6 km/h |
| b | f | abc,cde,efg,efg | cycling,cycling,cycling,cycling | 5 km/h |
2016-12-07 14:26:34 -05:00
| c | e | cde,cde | cycling,cycling | 2 km/h |
| e | c | cde,cde | cycling,cycling | 2 km/h |