diff --git a/features/bicycle/maxspeed.feature b/features/bicycle/maxspeed.feature new file mode 100644 index 000000000..801c7c9c4 --- /dev/null +++ b/features/bicycle/maxspeed.feature @@ -0,0 +1,33 @@ +@routing @maxspeed @bicycle +Feature: Bike - Max speed restrictions + + Background: Use specific speeds + Given the speedprofile "bicycle" + + Scenario: Bike - Respect maxspeeds when lower that way type speed + Given the node map + | a | b | c | + + And the ways + | nodes | highway | maxspeed | + | ab | residential | | + | bc | residential | 10 | + + When I route I should get + | from | to | route | time | + | a | b | ab | 20s ~5% | + | b | c | bc | 36s ~5% | + + Scenario: Bike - Do not use maxspeed when higher that way type speed + Given the node map + | a | b | c | + + And the ways + | nodes | highway | maxspeed | + | ab | residential | | + | bc | residential | 80 | + + When I route I should get + | from | to | route | time | + | a | b | ab | 20s ~5% | + | b | c | bc | 20s ~5% | diff --git a/features/car/maxspeed.feature b/features/car/maxspeed.feature index c28b42779..c4578a185 100644 --- a/features/car/maxspeed.feature +++ b/features/car/maxspeed.feature @@ -1,5 +1,5 @@ -@routing @maxspeed -Feature: Max speed restrictions +@routing @maxspeed @car +Feature: Car - Max speed restrictions Background: Use specific speeds Given the speedprofile "car"