osrm-backend/features/bicycle/pushing.feature

125 lines
4.7 KiB
Gherkin
Raw Normal View History

@routing @bicycle @pushing
Feature: Bike - Accessability of different way types
2013-08-29 13:29:13 -04:00
Background:
Given the profile "bicycle"
Given the shortcuts
2014-08-12 08:18:02 -04:00
| key | value |
| bike | 15 km/h ~20% |
| foot | 5 km/h ~20% |
2013-08-29 13:29:13 -04:00
Scenario: Bike - Pushing bikes on pedestrian-only ways
Then routability should be
| highway | oneway | forw | backw |
| (nil) | | | |
| cycleway | | bike | bike |
| primary | | bike | bike |
| pedestrian | | foot | foot |
| footway | | foot | foot |
| primary | yes | bike | foot |
2013-08-29 13:29:13 -04:00
Scenario: Bike - Pushing bikes against normal oneways
Then routability should be
| highway | oneway | forw | backw |
| (nil) | | | |
| primary | yes | bike | foot |
| pedestrian | yes | foot | foot |
2013-08-29 13:29:13 -04:00
Scenario: Bike - Pushing bikes against reverse oneways
Then routability should be
| highway | oneway | forw | backw |
| (nil) | | | |
| primary | -1 | foot | bike |
| pedestrian | -1 | foot | foot |
@square
2013-08-29 13:29:13 -04:00
Scenario: Bike - Push bikes on pedestrian areas
Given the node map
| x | |
| a | b |
| d | c |
2013-08-29 13:29:13 -04:00
And the ways
| nodes | area | highway |
| xa | | primary |
| abcda | yes | pedestrian |
2013-08-29 13:29:13 -04:00
When I route I should get
| from | to | route |
| a | b | abcda,abcda |
| a | d | abcda,abcda |
| b | c | abcda,abcda |
| c | b | abcda,abcda |
| c | d | abcda,abcda |
| d | c | abcda,abcda |
| d | a | abcda,abcda |
| a | d | abcda,abcda |
2013-08-29 13:29:13 -04:00
Scenario: Bike - Pushing bikes on ways with foot=yes
Then routability should be
| highway | foot | forw | backw |
| motorway | | | |
| motorway | yes | foot | |
| runway | | | |
| runway | yes | foot | foot |
@todo
2013-08-29 13:29:13 -04:00
Scenario: Bike - Pushing bikes on ways with foot=yes in one direction
Then routability should be
| highway | foot:forward | foot:backward | forw | backw |
| motorway | | | | |
| motorway | yes | | foot | |
| motorway | | yes | | foot |
@construction
Scenario: Bike - Don't allow routing on ways still under construction
2013-08-29 13:29:13 -04:00
Then routability should be
| highway | foot | bicycle | bothw |
| primary | | | x |
| construction | | | |
| construction | yes | | |
| construction | | yes | |
@roundabout
2013-08-29 13:29:13 -04:00
Scenario: Bike - Don't push bikes against oneway flow on roundabouts
Then routability should be
| junction | forw | backw |
| roundabout | x | |
2013-08-29 13:29:13 -04:00
Scenario: Bike - Instructions when pushing bike on oneways
Given the node map
| a | b | |
| | c | d |
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway | oneway |
| ab | primary | |
| bc | primary | yes |
| cd | primary | |
2013-08-29 13:29:13 -04:00
When I route I should get
| from | to | route | turns |
| a | d | ab,bc,cd,cd | depart,right,left,arrive |
| d | a | cd,bc,ab,ab | depart,right,left,arrive |
| c | a | bc,ab,ab | depart,left,arrive |
| d | b | cd,bc,bc | depart,right,arrive |
2013-08-29 13:29:13 -04:00
@todo
Scenario: Bike - Instructions when pushing bike on footway/pedestrian, etc.
2013-08-29 13:29:13 -04:00
Given the node map
| a | b | |
| | c | d |
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway |
| ab | primary |
| bc | footway |
| cd | primary |
2013-08-29 13:29:13 -04:00
When I route I should get
| from | to | route | turns |
| a | d | ab,bc,cd,cd | depart,right,left,arrive |
| d | a | cd,bc,ab,ab | depart,right,left,arrive |
| c | a | bc,ab,ab | depart,left,arrive |
| d | b | cd,bc,bc | depart,right,arrive |