better handling of access and barrier tags
This commit is contained in:
@@ -16,29 +16,13 @@ Feature: Car - Restricted access
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestry | |
|
||||
| designated | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
|
||||
Scenario: Car - Access tags for other modes should have no effect
|
||||
Then routability should be
|
||||
| access | bothw |
|
||||
| ufo:yes | x |
|
||||
| ufo:motorcar | x |
|
||||
| ufo:motor_vehicle | x |
|
||||
| ufo:vehicle | x |
|
||||
| ufo:permissive | x |
|
||||
| ufo:designated | x |
|
||||
| ufo:no | x |
|
||||
| ufo:private | x |
|
||||
| ufo:agricultural | x |
|
||||
| ufo:forestry | x |
|
||||
| ufo:designated | x |
|
||||
| ufo:some_tag | x |
|
||||
|
||||
Scenario: Car - Access tags on nodes
|
||||
Then routability should be
|
||||
| node:access | bothw |
|
||||
| node/access | bothw |
|
||||
| yes | x |
|
||||
| motorcar | x |
|
||||
| motor_vehicle | x |
|
||||
@@ -48,19 +32,18 @@ Feature: Car - Restricted access
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestry | |
|
||||
| designated | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
|
||||
Scenario: Car - Access tags on both nodes and way
|
||||
Then routability should be
|
||||
| access | node:access | bothw |
|
||||
| access | node/access | bothw |
|
||||
| yes | yes | x |
|
||||
| yes | no | |
|
||||
| yes | some_tag | |
|
||||
| yes | some_tag | x |
|
||||
| no | yes | |
|
||||
| no | no | |
|
||||
| no | some_tag | |
|
||||
| some_tag | yes | |
|
||||
| some_tag | yes | x |
|
||||
| some_tag | no | |
|
||||
| some_tag | some_tag | |
|
||||
| some_tag | some_tag | x |
|
||||
@@ -6,37 +6,43 @@ Feature: Car - Barriers
|
||||
|
||||
Scenario: Car - Barriers
|
||||
Then routability should be
|
||||
| highway | node/barrier | node/access | bothw |
|
||||
| primary | | | x |
|
||||
| primary | gate | | x |
|
||||
| primary | cattle_grid | | x |
|
||||
| primary | border_control | | x |
|
||||
| primary | toll_booth | | x |
|
||||
| primary | sally_port | | x |
|
||||
| primary | bollard | | |
|
||||
| primary | some_tag | | |
|
||||
|
||||
| node/barrier | bothw |
|
||||
| | x |
|
||||
| bollard | |
|
||||
| gate | x |
|
||||
| cattle_grid | x |
|
||||
| border_control | x |
|
||||
| toll_booth | x |
|
||||
| sally_port | x |
|
||||
| entrance | |
|
||||
| wall | |
|
||||
| fence | |
|
||||
| some_tag | |
|
||||
|
||||
Scenario: Car - Access tag trumphs barriers
|
||||
Then routability should be
|
||||
| highway | node/barrier | node/access | bothw |
|
||||
| primary | bollard | yes | x |
|
||||
| primary | gate | yes | x |
|
||||
| primary | cattle_grid | yes | x |
|
||||
| primary | border_control | yes | x |
|
||||
| primary | toll_booth | yes | x |
|
||||
| primary | sally_port | yes | x |
|
||||
| primary | bollard | no | |
|
||||
| primary | gate | no | |
|
||||
| primary | cattle_grid | no | |
|
||||
| primary | border_control | no | |
|
||||
| primary | toll_booth | no | |
|
||||
| primary | sally_port | no | |
|
||||
| primary | sally_port | some_tag | |
|
||||
| primary | bollard | bicycle | |
|
||||
| primary | bollard | foot | |
|
||||
| primary | bollard | motorcar | x |
|
||||
| primary | bollard | motor_vehicle | x |
|
||||
| primary | bollard | vehicle | x |
|
||||
| primary | bollard | motorcar | x |
|
||||
| primary | bollard | permissive | x |
|
||||
| primary | bollard | designated | x |
|
||||
| node/barrier | node/access | bothw |
|
||||
| gate | | x |
|
||||
| gate | yes | x |
|
||||
| gate | vehicle | x |
|
||||
| gate | motorcar | x |
|
||||
| gate | motor_vehicle | x |
|
||||
| gate | permissive | x |
|
||||
| gate | designated | x |
|
||||
| gate | no | |
|
||||
| gate | foot | |
|
||||
| gate | bicycle | |
|
||||
| gate | private | |
|
||||
| gate | agricultural | |
|
||||
| wall | | |
|
||||
| wall | yes | x |
|
||||
| wall | vehicle | x |
|
||||
| wall | motorcar | x |
|
||||
| wall | motor_vehicle | x |
|
||||
| wall | permissive | x |
|
||||
| wall | designated | x |
|
||||
| wall | no | |
|
||||
| wall | foot | |
|
||||
| wall | bicycle | |
|
||||
| wall | private | |
|
||||
| wall | agricultural | |
|
||||
|
||||
@@ -5,30 +5,30 @@ Feature: Max speed restrictions
|
||||
Given the speedprofile "car"
|
||||
Given a grid size of 1000 meters
|
||||
|
||||
Scenario: Car - Maxspeed below profile speed of way type
|
||||
Scenario: Car - Respect maxspeeds when lower that way type speed
|
||||
Given the node map
|
||||
| a | b | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | maxspeed |
|
||||
| ab | motorway | |
|
||||
| bc | motorway | 10 |
|
||||
| ab | trunk | |
|
||||
| bc | trunk | 10 |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | time |
|
||||
| a | b | ab | 40s ~10% |
|
||||
| a | b | ab | 42s ~10% |
|
||||
| b | c | bc | 360s ~10% |
|
||||
|
||||
Scenario: Car - Maxspeed above profile speed of way type
|
||||
Scenario: Car - Use maxspeed when higher that way type speed
|
||||
Given the node map
|
||||
| a | b | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | maxspeed |
|
||||
| ab | residential | |
|
||||
| bc | residential | 50 |
|
||||
| bc | residential | 85 |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | time |
|
||||
| a | b | ab | 145s ~10% |
|
||||
| b | c | bc | 145s ~10% |
|
||||
| a | b | ab | 144s ~10% |
|
||||
| b | c | bc | 42s ~10% |
|
||||
|
||||
@@ -15,6 +15,16 @@ Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tag
|
||||
| highway | oneway | forw | backw |
|
||||
| primary | -1 | | x |
|
||||
|
||||
Scenario: Car - Implied onewatys
|
||||
Then routability should be
|
||||
| highway | junction | forw | backw |
|
||||
| motorway | | x | |
|
||||
| motorway_link | | x | |
|
||||
| primary | | x | x |
|
||||
| motorway | roundabout | x | |
|
||||
| motorway_link | roundabout | x | |
|
||||
| primary | roundabout | x | |
|
||||
|
||||
Scenario: Car - Around the Block
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
Reference in New Issue
Block a user