Fix assertions in car profile, resolves #3629

restrict direction if access tag is missing and can not be derived
from highway tag

http://www.openstreetmap.org/way/4282676
http://www.openstreetmap.org/way/4621857
http://www.openstreetmap.org/way/4898368
This commit is contained in:
Michael Krasnyk
2017-01-31 12:57:04 +01:00
committed by Patrick Niklaus
parent eaed5c7a8e
commit 1628ebb871
4 changed files with 41 additions and 19 deletions
+11
View File
@@ -245,3 +245,14 @@ Feature: Car - Restricted access
| gate | designated | x |
| gate | private | |
| gate | garbagetag | x |
Scenario: Car - a way with conditional access
Then routability should be
| highway | vehicle:forward | vehicle:backward:conditional | forw | backw |
| pedestrian | yes | delivery @ (20:00-11:00) | x | |
Scenario: Car - a way with a list of tags
Then routability should be
| highway | motor_vehicle | motor_vehicle:forward | motor_vehicle:backward | forw | backw |
| footway | | | destination | | x |
| track | destination;agricultural | destination | | x | x |
+5
View File
@@ -103,3 +103,8 @@ Feature: Foot - Access tags on ways
| bridleway | | yes | | |
| bridleway | designated | | | |
| bridleway | | | | |
Scenario: Foot - a way with missing :forward tag
Then routability should be
| highway | bicycle:backward | foot:backward | forw | backw |
| cycleway | designated | designated | | x |