From c2b73307dee597e85d25ac5c7a5e51be3583bf0c Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 19 Oct 2016 13:29:56 -0400 Subject: [PATCH] [fix] parens --- 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 c3cc3bec..40d04214 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -550,7 +550,7 @@ class OSMAddressFormatter(object): same_name_components[i] = c_name if first_valid_admin_center is None: - if component_index <= self.boundary_component_priorities[AddressFormatter.CITY] and + if (component_index <= self.boundary_component_priorities[AddressFormatter.CITY] 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()):