2013-02-03 07:08:11 -05:00
|
|
|
@routing @bicycle @pushing
|
|
|
|
Feature: Bike - Accessability of different way types
|
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Background:
|
|
|
|
Given the profile "bicycle"
|
2013-02-03 07:08:11 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Pushing bikes on pedestrian-only ways
|
|
|
|
Then routability should be
|
2017-03-07 03:56:19 -05:00
|
|
|
| highway | oneway | forw | backw |
|
|
|
|
| (nil) | | | |
|
|
|
|
| cycleway | | cycling | cycling |
|
|
|
|
| primary | | cycling | cycling |
|
|
|
|
| pedestrian | | pushing bike | pushing bike |
|
|
|
|
| cycleway | | cycling | cycling |
|
|
|
|
| primary | yes | cycling | pushing bike |
|
2013-02-03 07:08:11 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Pushing bikes against normal oneways
|
|
|
|
Then routability should be
|
2017-03-07 03:56:19 -05:00
|
|
|
| highway | oneway | forw | backw |
|
|
|
|
| (nil) | | | |
|
|
|
|
| primary | yes | cycling | pushing bike |
|
|
|
|
| pedestrian | yes | pushing bike | pushing bike |
|
2013-02-03 07:08:11 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Pushing bikes against reverse oneways
|
|
|
|
Then routability should be
|
2017-03-07 03:56:19 -05:00
|
|
|
| highway | oneway | forw | backw |
|
|
|
|
| (nil) | | | |
|
|
|
|
| primary | -1 | pushing bike | cycling |
|
|
|
|
| pedestrian | -1 | pushing bike | pushing bike |
|
2013-02-03 07:08:11 -05:00
|
|
|
|
2016-03-29 16:55:02 -04:00
|
|
|
@square
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Push bikes on pedestrian areas
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
x
|
|
|
|
a b
|
|
|
|
d c
|
|
|
|
"""
|
2013-02-03 07:08:11 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
And the ways
|
|
|
|
| nodes | area | highway |
|
|
|
|
| xa | | primary |
|
|
|
|
| abcda | yes | pedestrian |
|
2013-02-03 07:08:11 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
When I route I should get
|
2017-03-07 03:56:19 -05:00
|
|
|
| from | to | route |
|
2016-03-31 19:25:08 -04:00
|
|
|
| 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-02-03 07:08:11 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Pushing bikes on ways with foot=yes
|
|
|
|
Then routability should be
|
2017-03-07 03:56:19 -05:00
|
|
|
| highway | foot | forw | backw |
|
|
|
|
| motorway | | | |
|
|
|
|
| motorway | yes | pushing bike | |
|
|
|
|
| runway | | | |
|
|
|
|
| runway | yes | pushing bike | pushing bike |
|
2016-03-29 16:55:02 -04:00
|
|
|
|
2016-10-11 10:21:55 -04:00
|
|
|
@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
|
2017-03-07 03:56:19 -05:00
|
|
|
| highway | foot:forward | foot:backward | forw | backw |
|
|
|
|
| motorway | | | | |
|
|
|
|
| motorway | yes | | pushing bike | |
|
|
|
|
| motorway | | yes | | pushing bike |
|
2013-02-06 10:58:18 -05:00
|
|
|
|
|
|
|
@construction
|
2016-03-29 16:55:02 -04:00
|
|
|
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 | |
|
2016-03-29 16:55:02 -04:00
|
|
|
|
2013-02-15 11:02:49 -05:00
|
|
|
@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 | |
|
2016-03-29 16:55:02 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Instructions when pushing bike on oneways
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b e
|
|
|
|
f c d
|
|
|
|
"""
|
2013-03-20 08:01:21 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
And the ways
|
|
|
|
| nodes | highway | oneway |
|
|
|
|
| ab | primary | |
|
|
|
|
| bc | primary | yes |
|
|
|
|
| cd | primary | |
|
2016-05-13 13:18:00 -04:00
|
|
|
| be | primary | |
|
|
|
|
| cf | primary | |
|
2013-03-20 08:01:21 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
When I route I should get
|
2017-03-07 03:56:19 -05:00
|
|
|
| from | to | route | modes |
|
|
|
|
| a | d | ab,bc,cd,cd | cycling,cycling,cycling,cycling |
|
|
|
|
| d | a | cd,bc,ab,ab | cycling,pushing bike,cycling,cycling |
|
|
|
|
| c | a | bc,ab,ab | pushing bike,cycling,cycling |
|
|
|
|
| d | b | cd,bc,bc | cycling,pushing bike,pushing bike |
|
2013-03-22 04:09:19 -04:00
|
|
|
|
|
|
|
Scenario: Bike - Instructions when pushing bike on footway/pedestrian, etc.
|
2013-08-29 13:29:13 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b
|
|
|
|
c d
|
|
|
|
"""
|
2013-03-22 04:09:19 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
And the ways
|
|
|
|
| nodes | highway |
|
|
|
|
| ab | primary |
|
|
|
|
| bc | footway |
|
|
|
|
| cd | primary |
|
2013-03-22 04:09:19 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
When I route I should get
|
2016-03-23 08:04:23 -04:00
|
|
|
| from | to | route | modes |
|
|
|
|
| a | d | ab,bc,cd,cd | cycling,pushing bike,cycling,cycling |
|
|
|
|
| d | a | cd,bc,ab,ab | cycling,pushing bike,cycling,cycling |
|
|
|
|
| c | a | bc,ab,ab | pushing bike,cycling,cycling |
|
|
|
|
| d | b | cd,bc,bc | cycling,pushing bike,pushing bike |
|