osrm-backend/features/car/bridge.feature

65 lines
2.7 KiB
Gherkin
Raw Normal View History

@routing @car @bridge
Feature: Car - Handle driving
Background:
Given the profile "car"
Given a grid size of 200 meters
Scenario: Car - Use a ferry route
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
d
e f g
"""
And the ways
| nodes | highway | bridge | bicycle |
| abc | primary | | |
2017-02-21 16:33:33 -05:00
| cde | primary | movable | yes |
| efg | primary | | |
When I route I should get
2017-11-03 13:31:22 -04:00
| from | to | route | modes | turns |
| a | g | abc,cde,efg,efg | driving,driving,driving,driving | depart,new name right,new name left,arrive |
| e | a | cde,abc,abc | driving,driving,driving | depart,new name left,arrive |
Scenario: Car - Control test without durations, osrm uses movable bridge speed to calculate duration
Given the node map
"""
a b c
d
e f g
"""
And the ways
| nodes | highway | bridge |
| abc | primary | |
2017-02-21 16:33:33 -05:00
| cde | primary | movable |
| efg | primary | |
When I route I should get
2017-11-03 13:31:22 -04:00
| from | to | route | modes | speed | time | turns |
| a | g | abc,cde,efg,efg | driving,driving,driving,driving | 13 km/h | 332s +-1 | depart,new name right,new name left,arrive |
| e | c | cde,cde | driving,driving | 5 km/h | 288s +-1 | depart,arrive |
Scenario: Car - Properly handle durations
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
d
e f g
"""
And the ways
| nodes | highway | bridge | duration |
| abc | primary | | |
| cde | primary | movable | 00:10:00 |
| efg | primary | | |
When I route I should get
2017-11-03 13:31:22 -04:00
| from | to | route | modes | speed | turns |
| a | g | abc,cde,efg,efg | driving,driving,driving,driving | 7 km/h | depart,new name right,new name left,arrive |
| c | e | cde,cde | driving,driving | 2 km/h | depart,arrive |
| e | c | cde,cde | driving,driving | 2 km/h | depart,arrive |