fix copy-paste typo in guidance lib
This commit is contained in:
parent
b1b41435b6
commit
be266c7c2b
@ -120,6 +120,26 @@ Feature: Turn Lane Guidance
|
|||||||
| a,d | road,turn,turn | depart,turn right,arrive | ,straight:false right:true, |
|
| a,d | road,turn,turn | depart,turn right,arrive | ,straight:false right:true, |
|
||||||
| a,c | road,road | depart,arrive | , |
|
| a,c | road,road | depart,arrive | , |
|
||||||
|
|
||||||
|
Scenario: Turn with Bus-Lane Left
|
||||||
|
Given the node map
|
||||||
|
| | | d | | | | |
|
||||||
|
| | | | | | | |
|
||||||
|
| a | | b | | c | | f |
|
||||||
|
| | | | | e | | |
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | name | turn:lanes:forward | lanes:psv:forward | oneway |
|
||||||
|
| ab | road | left\|through\| | 1 | yes |
|
||||||
|
| bc | road | | | yes |
|
||||||
|
| bd | turn | | | yes |
|
||||||
|
| cf | turn | | | yes |
|
||||||
|
| ce | side | | | yes |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| waypoints | route | turns | lanes |
|
||||||
|
| a,d | road,turn,turn | depart,turn left,arrive | ,left:true straight:false, |
|
||||||
|
| a,c | road,road | depart,arrive | , |
|
||||||
|
|
||||||
# This tests whether empty/invalid PSV tags cause osrm-extract to crash
|
# This tests whether empty/invalid PSV tags cause osrm-extract to crash
|
||||||
@bug
|
@bug
|
||||||
Scenario: Turn with Bus-Lane
|
Scenario: Turn with Bus-Lane
|
||||||
|
@ -95,7 +95,7 @@ local function process_lanes(turn_lane,vehicle_lane,first_count,second_count)
|
|||||||
if turn_lane and turn_lane ~= "" then
|
if turn_lane and turn_lane ~= "" then
|
||||||
if vehicle_lane and vehicle_lane ~= "" then
|
if vehicle_lane and vehicle_lane ~= "" then
|
||||||
turn_lane = applyAccessTokens(turn_lane,vehicle_lane)
|
turn_lane = applyAccessTokens(turn_lane,vehicle_lane)
|
||||||
elseif fw_count ~= 0 or bw_count ~= 0 then
|
elseif first_count ~= 0 or second_count ~= 0 then
|
||||||
turn_lane = trimLaneString(turn_lane, first_count, second_count)
|
turn_lane = trimLaneString(turn_lane, first_count, second_count)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user