Supports destination:street, resolves #3541

This commit is contained in:
Daniel J. Hofmann
2017-01-09 18:56:51 +05:30
committed by Daniel J. H
parent 1d4d3b80b5
commit fd57c5b48b
4 changed files with 35 additions and 23 deletions
+3 -2
View File
@@ -18,11 +18,12 @@ end
function Destination.get_destination(way, is_forward)
ref = Destination.get_directional_tag(way, is_forward, 'destination:ref')
dest = Destination.get_directional_tag(way, is_forward, 'destination')
street = Destination.get_directional_tag(way, is_forward, 'destination:street')
if ref and dest then
return ref .. ': ' .. dest
else
return ref or dest or ''
return ref or dest or street or ''
end
end
return Destination
return Destination