Skip to content

Commit 9ab0fca

Browse files
daniel-j-hTheMarex
authored andcommitted
Canonicalizes all OSM string list handling in the profiles
1 parent e2e398e commit 9ab0fca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

features/guidance/exit-numbers-names.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ Feature: Exit Numbers and Names
4141
| ef | motorway_link | ExitRamp | |
4242

4343
When I route I should get
44-
| waypoints | route | turns | exits |
45-
| a,f | MainRoad,ExitRamp,ExitRamp | depart,off ramp slight right,arrive | ,10;12, |
44+
| waypoints | route | turns | exits |
45+
| a,f | MainRoad,ExitRamp,ExitRamp | depart,off ramp slight right,arrive | ,10; 12, |
4646

4747

4848
Scenario: Exit number on the ways after the motorway junction, multiple exits

profiles/lib/handlers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Handlers.handle_names(way,result,data,profile)
4848
end
4949

5050
if exits then
51-
result.exits = exits
51+
result.exits = canonicalizeStringList(exits, ";")
5252
end
5353
end
5454

0 commit comments

Comments
 (0)