From e0c211085c57966e01767d21cc2f459bf60434ff Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Tue, 29 Jan 2013 17:36:28 +0100 Subject: [PATCH] Handle route=shuttle_train again --- features/car/shuttle_train.feature | 31 ++++++++++++++++++++++++++++++ profiles/car.lua | 1 + 2 files changed, 32 insertions(+) create mode 100644 features/car/shuttle_train.feature diff --git a/features/car/shuttle_train.feature b/features/car/shuttle_train.feature new file mode 100644 index 000000000..ed2187c27 --- /dev/null +++ b/features/car/shuttle_train.feature @@ -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 | | + + diff --git a/profiles/car.lua b/profiles/car.lua index c078647f6..0effd8138 100644 --- a/profiles/car.lua +++ b/profiles/car.lua @@ -28,6 +28,7 @@ speed_profile = { ["service"] = 15, -- ["track"] = 5, ["ferry"] = 5, + ["shuttle_train"] = 10, ["default"] = 50 }