more access tests combinations and other modes
This commit is contained in:
		
							parent
							
								
									794c3490fe
								
							
						
					
					
						commit
						8e31b8860c
					
				| @ -65,29 +65,61 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access | ||||
| 
 | ||||
| 	Scenario: Bike - Access tags on ways | ||||
| 	 	Then routability should be | ||||
| 		 | access       | bothw | | ||||
| 		 |              | x     | | ||||
| 		 | yes          | x     | | ||||
| 		 | permissive   | x     | | ||||
| 		 | designated   | x     | | ||||
| 		 | no           |       | | ||||
| 		 | private      |       | | ||||
| 		 | agricultural |       | | ||||
| 		 | forestery    |       | | ||||
| 		 | some_tag     | x     | | ||||
| 		 | access       | vehicle      | bicycle      | bothw | | ||||
| 		 |              |              |              | x     | | ||||
| 		 | 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    |              |       | | ||||
| 		 |              |              | yes          | x     | | ||||
| 		 |              |              | permissive   | x     | | ||||
| 		 |              |              | designated   | x     | | ||||
| 		 |              |              | some_tag     | x     | | ||||
| 		 |              |              | no           |       | | ||||
| 		 |              |              | private      |       | | ||||
| 		 |              |              | agricultural |       | | ||||
| 		 |              |              | forestery    |       | | ||||
| 
 | ||||
| 	Scenario: Bike - Access tags on nodes | ||||
| 	 	Then routability should be | ||||
| 		 | node/access  | bothw | | ||||
| 		 |              | x     | | ||||
| 		 | yes          | x     | | ||||
| 		 | permissive   | x     | | ||||
| 		 | designated   | x     | | ||||
| 		 | no           |       | | ||||
| 		 | private      |       | | ||||
| 		 | agricultural |       | | ||||
| 		 | forestery    |       | | ||||
| 		 | some_tag     | x     | | ||||
| 		 | node/access  | node/vehicle | node/bicycle | bothw | | ||||
| 		 |              |              |              | x     | | ||||
| 		 | 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    |              |       | | ||||
| 		 |              |              | yes          | x     | | ||||
| 		 |              |              | permissive   | x     | | ||||
| 		 |              |              | designated   | x     | | ||||
| 		 |              |              | some_tag     | x     | | ||||
| 		 |              |              | no           |       | | ||||
| 		 |              |              | private      |       | | ||||
| 		 |              |              | agricultural |       | | ||||
| 		 |              |              | forestery    |       | | ||||
| 
 | ||||
| 	Scenario: Bike - Access tags on both node and way | ||||
| 	 	Then routability should be | ||||
| @ -101,3 +133,24 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access | ||||
| 		 | some_tag | yes         | x     | | ||||
| 		 | some_tag | no          |       | | ||||
| 		 | 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     | | ||||
| @ -120,3 +120,25 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access | ||||
| 		 | some_tag | yes         | x     | | ||||
| 		 | some_tag | no          |       | | ||||
| 		 | 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     | | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user