From cdf4f905bc7a0e57e78f7dc2447813d144f80521 Mon Sep 17 00:00:00 2001 From: Duy Trinh Duc Date: Fri, 13 Nov 2020 10:07:31 +0700 Subject: [PATCH] Add speed limit to way name --- profiles/lib/way_handlers.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/profiles/lib/way_handlers.lua b/profiles/lib/way_handlers.lua index b13410235..e04316a87 100644 --- a/profiles/lib/way_handlers.lua +++ b/profiles/lib/way_handlers.lua @@ -36,9 +36,13 @@ function WayHandlers.names(profile,way,result,data) local ref = way:get_value_by_key("ref") local exits = way:get_value_by_key("junction:ref") + local keys = Sequence { 'maxspeed:advisory', 'maxspeed' } + local forward, backward = Tags.get_forward_backward_by_set(way,data,keys) + forward = WayHandlers.parse_maxspeed(forward,profile) + -- Set the name that will be used for instructions if name then - result.name = name + result.name = name.."|"..forward end if ref then