Canonicalizes all OSM string list handling in the profiles

This commit is contained in:
Daniel J. Hofmann 2017-07-10 15:41:15 +02:00 committed by Patrick Niklaus
parent 8508834e50
commit 5e9397fcca
2 changed files with 3 additions and 3 deletions

View File

@ -41,8 +41,8 @@ Feature: Exit Numbers and Names
| ef | motorway_link | ExitRamp | |
When I route I should get
| waypoints | route | turns | exits |
| a,f | MainRoad,ExitRamp,ExitRamp | depart,off ramp slight right,arrive | ,10;12, |
| waypoints | route | turns | exits |
| a,f | MainRoad,ExitRamp,ExitRamp | depart,off ramp slight right,arrive | ,10; 12, |
Scenario: Exit number on the ways after the motorway junction, multiple exits

View File

@ -48,7 +48,7 @@ function Handlers.handle_names(way,result,data,profile)
end
if exits then
result.exits = exits
result.exits = canonicalizeStringList(exits, ";")
end
end