turn off turn restrictions for bicycle and foot, update tests

This commit is contained in:
Emil Tin 2013-02-11 10:05:53 +01:00 committed by DennisOSRM
parent db148741e9
commit 313b93169d
3 changed files with 20 additions and 20 deletions

View File

@ -1,6 +1,6 @@
@routing @bicycle @restrictions
Feature: Bike - Turn restrictions
Handle turn restrictions as defined by http://wiki.openstreetmap.org/wiki/Relation:restriction
Ignore turn restrictions on bicycle, since you always become a temporary pedestrian.
Note that if u-turns are allowed, turn restrictions can lead to suprising, but correct, routes.
Background:
@ -26,7 +26,7 @@ Feature: Bike - Turn restrictions
When I route I should get
| from | to | route |
| s | w | |
| s | w | sj,wj |
| s | n | sj,nj |
| s | e | sj,ej |
@ -52,7 +52,7 @@ Feature: Bike - Turn restrictions
| from | to | route |
| s | w | sj,wj |
| s | n | sj,nj |
| s | e | |
| s | e | sj,ej |
@no_turning
Scenario: Bike - No u-turn
@ -74,7 +74,7 @@ Feature: Bike - Turn restrictions
When I route I should get
| from | to | route |
| s | w | |
| s | w | sj,wj |
| s | n | sj,nj |
| s | e | sj,ej |
@ -98,7 +98,7 @@ Feature: Bike - Turn restrictions
When I route I should get
| from | to | route |
| s | w | |
| s | w | sj,wj |
| s | n | sj,nj |
| s | e | sj,ej |
@ -123,8 +123,8 @@ Feature: Bike - Turn restrictions
When I route I should get
| from | to | route |
| s | w | sj,wj |
| s | n | |
| s | e | |
| s | n | sj,nj |
| s | e | sj,ej |
@only_turning
Scenario: Bike - Only right turn
@ -146,8 +146,8 @@ Feature: Bike - Turn restrictions
When I route I should get
| from | to | route |
| s | w | |
| s | n | |
| s | w | sj,wj |
| s | n | sj,nj |
| s | e | sj,ej |
@only_turning
@ -170,9 +170,9 @@ Feature: Bike - Turn restrictions
When I route I should get
| from | to | route |
| s | w | |
| s | w | sj,wj |
| s | n | sj,nj |
| s | e | |
| s | e | sj,ej |
@no_turning
Scenario: Bike - Handle any only_* restriction
@ -194,9 +194,9 @@ Feature: Bike - Turn restrictions
When I route I should get
| from | to | route |
| s | w | |
| s | w | sj,wj |
| s | n | sj,nj |
| s | e | |
| s | e | sj,ej |
@except
Scenario: Bike - Except tag and on no_ restrictions
@ -224,8 +224,8 @@ Feature: Bike - Turn restrictions
When I route I should get
| from | to | route |
| s | a | sj,aj |
| s | b | |
| s | c | |
| s | b | sj,bj |
| s | c | sj,cj |
| s | d | sj,dj |
@except
@ -281,9 +281,9 @@ Feature: Bike - Turn restrictions
When I route I should get
| from | to | route |
| s | a | |
| s | a | sj,ja |
| s | b | sj,jb |
| s | c | sj,jc |
| s | d | sj,jd |
| s | e | |
| s | f | |
| s | e | sj,je |
| s | f | sj,jf |

View File

@ -72,7 +72,7 @@ use_restrictions = true
ignore_areas = true -- future feature
traffic_signal_penalty = 2
u_turn_penalty = 20
use_turn_restrictions = false
-- End of globals
function get_exceptions(vector)

View File

@ -41,7 +41,7 @@ use_restrictions = false
ignore_areas = true -- future feature
traffic_signal_penalty = 2
u_turn_penalty = 2
use_turn_restrictions = false
-- End of globals
function get_exceptions(vector)