2015-02-26 08:56:01 -05:00
|
|
|
@routing @car @bridge
|
2016-04-19 12:59:33 -04:00
|
|
|
Feature: Car - Handle driving
|
2015-02-26 08:56:01 -05:00
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "car"
|
2017-02-15 09:12:24 -05:00
|
|
|
Given a grid size of 200 meters
|
2015-02-26 08:56:01 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
"""
|
2015-02-26 08:56:01 -05:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | bridge | bicycle |
|
|
|
|
| abc | primary | | |
|
2017-02-21 16:33:33 -05:00
|
|
|
| cde | primary | movable | yes |
|
2015-02-26 08:56:01 -05:00
|
|
|
| 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 |
|
2015-02-26 08:56:01 -05:00
|
|
|
|
2017-02-07 08:05:24 -05:00
|
|
|
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 |
|
2017-02-07 08:05:24 -05:00
|
|
|
| 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 |
|
2017-02-07 08:05:24 -05:00
|
|
|
|
2015-02-26 08:56:01 -05:00
|
|
|
Scenario: Car - Properly handle durations
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c
|
|
|
|
d
|
|
|
|
e f g
|
|
|
|
"""
|
2015-02-26 08:56:01 -05:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | bridge | duration |
|
|
|
|
| abc | primary | | |
|
2017-02-15 09:12:24 -05:00
|
|
|
| cde | primary | movable | 00:10:00 |
|
2015-02-26 08:56:01 -05: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 |
|