From 4cc49b7ca45d4d0f2441f89ddd1b1ed097c094e2 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 27 Jul 2016 12:48:35 -0400 Subject: [PATCH] [fix] typo --- 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 72915de0..64369484 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -421,7 +421,7 @@ class OSMAddressFormatter(object): revised_osm_components.append(c) if not first_valid: - if (component_index <= self.boundary_component_priorities[AddressesFormatter.CITY] and + if (component_index <= self.boundary_component_priorities[AddressFormatter.CITY] and component_index != c_index and tags.get('type') == 'node' and 'admin_center' in c and tags.get('id') and c['admin_center']['id'] == tags['id'] and c.get('name', '').lower() == tags['name'].lower()): component_name = c_name