[osm] When choosing a namespaced language, alias all namespaced tags, not just the addr:* tags
This commit is contained in:
@@ -147,7 +147,7 @@ class OSMAddressFormatter(object):
|
|||||||
language = random.choice(namespaced)
|
language = random.choice(namespaced)
|
||||||
lang_suffix = ':{}'.format(language)
|
lang_suffix = ':{}'.format(language)
|
||||||
for k in tags:
|
for k in tags:
|
||||||
if k.startswith('addr:') and k.endswith(lang_suffix):
|
if k.endswith(lang_suffix):
|
||||||
tags[k.rstrip(lang_suffix)] = tags[k]
|
tags[k.rstrip(lang_suffix)] = tags[k]
|
||||||
|
|
||||||
return language
|
return language
|
||||||
|
|||||||
Reference in New Issue
Block a user