more access tests combinations and other modes

This commit is contained in:
Emil Tin 2012-10-04 12:07:38 +02:00
parent 794c3490fe
commit 8e31b8860c
2 changed files with 95 additions and 20 deletions

View File

@ -65,29 +65,61 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
Scenario: Bike - Access tags on ways Scenario: Bike - Access tags on ways
Then routability should be Then routability should be
| access | bothw | | access | vehicle | bicycle | bothw |
| | x | | | | | x |
| yes | x | | yes | | | x |
| permissive | x | | permissive | | | x |
| designated | x | | designated | | | x |
| no | | | some_tag | | | x |
| private | | | no | | | |
| agricultural | | | private | | | |
| forestery | | | agricultural | | | |
| some_tag | x | | forestery | | | |
| | yes | | x |
| | permissive | | x |
| | designated | | x |
| | some_tag | | x |
| | no | | |
| | private | | |
| | agricultural | | |
| | forestery | | |
| | | yes | x |
| | | permissive | x |
| | | designated | x |
| | | some_tag | x |
| | | no | |
| | | private | |
| | | agricultural | |
| | | forestery | |
Scenario: Bike - Access tags on nodes Scenario: Bike - Access tags on nodes
Then routability should be Then routability should be
| node/access | bothw | | node/access | node/vehicle | node/bicycle | bothw |
| | x | | | | | x |
| yes | x | | yes | | | x |
| permissive | x | | permissive | | | x |
| designated | x | | designated | | | x |
| no | | | some_tag | | | x |
| private | | | no | | | |
| agricultural | | | private | | | |
| forestery | | | agricultural | | | |
| some_tag | x | | forestery | | | |
| | yes | | x |
| | permissive | | x |
| | designated | | x |
| | some_tag | | x |
| | no | | |
| | private | | |
| | agricultural | | |
| | forestery | | |
| | | yes | x |
| | | permissive | x |
| | | designated | x |
| | | some_tag | x |
| | | no | |
| | | private | |
| | | agricultural | |
| | | forestery | |
Scenario: Bike - Access tags on both node and way Scenario: Bike - Access tags on both node and way
Then routability should be Then routability should be
@ -101,3 +133,24 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
| some_tag | yes | x | | some_tag | yes | x |
| some_tag | no | | | some_tag | no | |
| some_tag | some_tag | x | | some_tag | some_tag | x |
Scenario: Bike - Access combinations
Then routability should be
| highway | access | vehicle | bicycle | bothw |
| runway | private | | yes | x |
| footway | | no | permissive | x |
| motorway | | | yes | x |
| track | forestry | | permissive | x |
| cycleway | yes | designated | no | |
| primary | | yes | private | |
| residential | permissive | | no | |
Scenario: Bike - Ignore access tags for other modes
Then routability should be
| highway | foot | motor_vehicle | moped | bothw |
| runway | yes | | | |
| cycleway | no | | | x |
| runway | | yes | | |
| cycleway | | no | | x |
| runway | | | yes | |
| cycleway | | | no | x |

View File

@ -120,3 +120,25 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
| some_tag | yes | x | | some_tag | yes | x |
| some_tag | no | | | some_tag | no | |
| some_tag | some_tag | x | | some_tag | some_tag | x |
Scenario: Car - Access combinations
Then routability should be
| highway | accesss | vehicle | motor_vehicle | motorcar | bothw |
| runway | private | | | permissive | x |
| primary | forestry | | yes | | x |
| cycleway | | | designated | | x |
| residential | | yes | no | | |
| motorway | yes | permissive | | private | |
| trunk | agricultural | designated | permissive | no | |
Scenario: Car - Ignore access tags for other modes
Then routability should be
| highway | foot | bicycle | psv | motorhome | bothw |
| runway | yes | | | | |
| primary | no | | | | x |
| runway | | yes | | | |
| primary | | no | | | x |
| runway | | | yes | | |
| primary | | | no | | x |
| runway | | | | yes | |
| primary | | | | no | x |