Lane Handling for multiple indications per lane as in left;left|, fixes #2694

Before we asserted on unique lane indications per lane. Turns out the
OSM data contains lane strings such as:

    left;left|right

Which represents two lanes as in:

    <<     >
     ||    |

The two left indications _on a single lane_ look like data issue.
And we can't represent this with our enum-approach at the moment.

We don't want to crash there, so silently swallow this and
generate a single left|right for it.
This commit is contained in:
Daniel J. Hofmann
2016-07-25 11:43:35 +02:00
parent 261dbf3edd
commit fd6bb5ec1f
2 changed files with 43 additions and 21 deletions
+14
View File
@@ -736,4 +736,18 @@ Feature: Turn Lane Guidance
| x,d | road,road | depart,arrive | , |
Scenario: Lane Parsing Issue #2694
Given the node map
| | c |
| a | b |
| | d |
And the ways
| nodes | highway | turn:lanes:forward |
| ab | primary | left;left\|right |
| bc | primary | |
| bd | primary | |
When I route I should get
| waypoints | route | turns | lanes |
| a,c | ab,bc,bc | depart,turn left,arrive | ,left:true right:false, |