add test for pushing bikes on footways etc
This commit is contained in:
parent
96cd09471b
commit
50f865b81c
@ -102,4 +102,23 @@ Feature: Bike - Accessability of different way types
|
|||||||
| a | d | ab,bc,cd | head,right,left,destination |
|
| a | d | ab,bc,cd | head,right,left,destination |
|
||||||
| d | a | cd,bc,ab | head,enter_contraflow,leave_contraflow,destination |
|
| d | a | cd,bc,ab | head,enter_contraflow,leave_contraflow,destination |
|
||||||
| c | a | bc,ab | head,leave_contraflow,destination |
|
| c | a | bc,ab | head,leave_contraflow,destination |
|
||||||
| d | b | cd,bc | head,enter_contraflow,destination |
|
| d | b | cd,bc | head,enter_contraflow,destination |
|
||||||
|
|
||||||
|
@todo
|
||||||
|
Scenario: Bike - Instructions when pushing bike on footway/pedestrian, etc.
|
||||||
|
Given the node map
|
||||||
|
| a | b | |
|
||||||
|
| | c | d |
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | highway |
|
||||||
|
| ab | primary |
|
||||||
|
| bc | footway |
|
||||||
|
| cd | primary |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| from | to | route | turns |
|
||||||
|
| a | d | ab,bc,cd | head,right,left,destination |
|
||||||
|
| d | a | cd,bc,ab | head,enter_contraflow,leave_contraflow,destination |
|
||||||
|
| c | a | bc,ab | head,leave_contraflow,destination |
|
||||||
|
| d | b | cd,bc | head,enter_contraflow,destination |
|
@ -208,6 +208,7 @@ function way_function (way)
|
|||||||
if pedestrian_speeds[highway] then
|
if pedestrian_speeds[highway] then
|
||||||
-- pedestrian-only ways and areas
|
-- pedestrian-only ways and areas
|
||||||
way.speed = pedestrian_speeds[highway]
|
way.speed = pedestrian_speeds[highway]
|
||||||
|
way.backward_speed = way.speed-1
|
||||||
elseif man_made and man_made_speeds[man_made] then
|
elseif man_made and man_made_speeds[man_made] then
|
||||||
-- man made structures
|
-- man made structures
|
||||||
way.speed = man_made_speeds[man_made]
|
way.speed = man_made_speeds[man_made]
|
||||||
|
Loading…
Reference in New Issue
Block a user