better handling of access and barrier tags

This commit is contained in:
Emil Tin
2012-10-03 19:04:56 +02:00
parent 30465f08ac
commit 4b00557fda
13 changed files with 162 additions and 159 deletions
+8 -8
View File
@@ -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% |