Handle route=shuttle_train again
This commit is contained in:
parent
555bfaf37a
commit
e0c211085c
31
features/car/shuttle_train.feature
Normal file
31
features/car/shuttle_train.feature
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
@routing @car @shuttle_train
|
||||||
|
Feature: Car - Handle ferryshuttle train routes
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given the profile "car"
|
||||||
|
|
||||||
|
Scenario: Car - Use a ferry route
|
||||||
|
Given the node map
|
||||||
|
| a | b | c | | |
|
||||||
|
| | | d | | |
|
||||||
|
| | | e | f | g |
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | highway | route | bicycle |
|
||||||
|
| abc | primary | | |
|
||||||
|
| cde | | shuttle_train | yes |
|
||||||
|
| ef | primary | | |
|
||||||
|
| fg | | ferry_man | |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| from | to | route |
|
||||||
|
| a | g | abc,cde,ef |
|
||||||
|
| b | f | abc,cde,ef |
|
||||||
|
| e | c | cde |
|
||||||
|
| e | b | cde,abc |
|
||||||
|
| e | a | cde,abc |
|
||||||
|
| c | e | cde |
|
||||||
|
| c | f | cde,ef |
|
||||||
|
| f | g | |
|
||||||
|
|
||||||
|
|
@ -28,6 +28,7 @@ speed_profile = {
|
|||||||
["service"] = 15,
|
["service"] = 15,
|
||||||
-- ["track"] = 5,
|
-- ["track"] = 5,
|
||||||
["ferry"] = 5,
|
["ferry"] = 5,
|
||||||
|
["shuttle_train"] = 10,
|
||||||
["default"] = 50
|
["default"] = 50
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user