This adds `barrier=block` exceptions to the respective white lists. In addition this adds tests to check for the exception in bicycle and foot profiles and makes sure cars are still not able to cross them. Checked with: cucumber --tags @barrier -p verify References: - https://github.com/Project-OSRM/osrm-backend/issues/1643 - http://wiki.openstreetmap.org/wiki/Tag:barrier%3Dblock
41 lines
1.5 KiB
Gherkin
41 lines
1.5 KiB
Gherkin
@routing @foot @barrier
|
|
Feature: Barriers
|
|
|
|
Background:
|
|
Given the profile "foot"
|
|
|
|
Scenario: Foot - Barriers
|
|
Then routability should be
|
|
| node/barrier | bothw |
|
|
| | x |
|
|
| bollard | x |
|
|
| gate | x |
|
|
| cycle_barrier | x |
|
|
| cattle_grid | x |
|
|
| border_control | x |
|
|
| toll_booth | x |
|
|
| sally_port | x |
|
|
| entrance | x |
|
|
| wall | |
|
|
| fence | |
|
|
| some_tag | |
|
|
| block | x |
|
|
|
|
Scenario: Foot - Access tag trumphs barriers
|
|
Then routability should be
|
|
| node/barrier | node/access | bothw |
|
|
| bollard | | x |
|
|
| bollard | yes | x |
|
|
| bollard | permissive | x |
|
|
| bollard | designated | x |
|
|
| bollard | no | |
|
|
| bollard | private | |
|
|
| bollard | agricultural | |
|
|
| wall | | |
|
|
| wall | yes | x |
|
|
| wall | permissive | x |
|
|
| wall | designated | x |
|
|
| gate | no | |
|
|
| gate | private | |
|
|
| gate | agricultural | |
|