This handles `barrier=bollard` with `bollard=rising`, by making an
exception to the barrier whitelist. Barriers tagged as such do no longer
require an explicit access tag.
This also adds corresponding tests, check this out:
    cucumber --tags @barrier
References:
- http://wiki.openstreetmap.org/wiki/Tag:barrier%3Dbollard
- http://wiki.openstreetmap.org/wiki/Key:bollard
- https://github.com/Project-OSRM/osrm-backend/issues/1616
		
	
			
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
| @routing @car @barrier
 | |
| Feature: Car - Barriers
 | |
| 
 | |
|     Background:
 | |
|         Given the profile "car"
 | |
| 
 | |
|     Scenario: Car - Barriers
 | |
|         Then routability should be
 | |
|             | node/barrier   | bothw |
 | |
|             |                | x     |
 | |
|             | bollard        |       |
 | |
|             | gate           | x     |
 | |
|             | lift_gate      | x     |
 | |
|             | cattle_grid    | x     |
 | |
|             | border_control | x     |
 | |
|             | toll_booth     | x     |
 | |
|             | sally_port     | x     |
 | |
|             | entrance       | x     |
 | |
|             | wall           |       |
 | |
|             | fence          |       |
 | |
|             | some_tag       |       |
 | |
| 
 | |
|     Scenario: Car - Access tag trumphs barriers
 | |
|         Then routability should be
 | |
|             | node/barrier | node/access   | bothw |
 | |
|             | gate         |               | x     |
 | |
|             | gate         | yes           | x     |
 | |
|             | gate         | permissive    | x     |
 | |
|             | gate         | designated    | x     |
 | |
|             | gate         | no            |       |
 | |
|             | gate         | private       |       |
 | |
|             | gate         | agricultural  |       |
 | |
|             | wall         |               |       |
 | |
|             | wall         | yes           | x     |
 | |
|             | wall         | permissive    | x     |
 | |
|             | wall         | designated    | x     |
 | |
|             | wall         | no            |       |
 | |
|             | wall         | private       |       |
 | |
|             | wall         | agricultural  |       |
 | |
| 
 | |
|     Scenario: Car - Rising bollard exception for barriers
 | |
|         Then routability should be
 | |
|             | node/barrier | node/bollard  | bothw |
 | |
|             | bollard      |               |       |
 | |
|             | bollard      | rising        | x     |
 | |
|             | bollard      | removable     |       |
 |