osrm-backend/features/bicycle/access.feature

64 lines
2.0 KiB
Gherkin
Raw Normal View History

@routing @bicycle @access
2012-10-01 07:27:08 -04:00
Feature: Bike - Restricted access
2012-10-03 16:56:41 -04:00
Reference: http://wiki.openstreetmap.org/wiki/Key:access
2012-09-30 06:01:56 -04:00
Background:
Given the speedprofile "bicycle"
2012-10-03 16:56:41 -04:00
Scenario: Bike - Access tag hierachy
Then routability should be
| access | vehicle | bicycle | bothw |
| yes | | | x |
| no | | | |
| yes | yes | | x |
| no | yes | | x |
| yes | no | | |
| no | no | | |
| yes | yes | yes | x |
| no | yes | yes | x |
| yes | no | yes | x |
| no | no | yes | x |
| yes | yes | no | |
| no | yes | no | |
| yes | no | no | |
| no | no | no | |
Scenario: Bike - Access tags on ways
Then routability should be
2012-09-30 06:01:56 -04:00
| access | bothw |
| | x |
2012-09-30 06:01:56 -04:00
| yes | x |
| permissive | x |
| designated | x |
| no | |
| private | |
| agricultural | |
| forestery | |
2012-09-30 06:01:56 -04:00
| some_tag | x |
2012-10-03 16:56:41 -04:00
Scenario: Bike - Access tags on nodes
Then routability should be
| node/access | bothw |
| | x |
2012-09-30 06:01:56 -04:00
| yes | x |
| permissive | x |
| designated | x |
| no | |
| private | |
| agricultural | |
| forestery | |
2012-09-30 06:01:56 -04:00
| some_tag | x |
2012-10-03 16:56:41 -04:00
Scenario: Bike - Access tags on both node and way
2012-09-30 06:01:56 -04:00
Then routability should be
| access | node/access | bothw |
2012-09-30 06:01:56 -04:00
| yes | yes | x |
| yes | no | |
| yes | some_tag | x |
2012-09-30 06:01:56 -04:00
| no | yes | |
| no | no | |
| no | some_tag | |
| some_tag | yes | x |
2012-09-30 06:01:56 -04:00
| some_tag | no | |
| some_tag | some_tag | x |