From 9bece91bd57190c48db5d68d1073a15648e106c8 Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 22 Jul 2016 14:56:07 -0400 Subject: [PATCH] [osm] When choosing a namespaced language, alias all namespaced tags, not just the addr:* tags --- scripts/geodata/osm/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index 7ad90134..87bb4cd3 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -147,7 +147,7 @@ class OSMAddressFormatter(object): language = random.choice(namespaced) lang_suffix = ':{}'.format(language) 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] return language