[fix] normalize building component tags, not regular tags
This commit is contained in:
@@ -454,7 +454,7 @@ class OSMAddressFormatter(object):
|
||||
num_floors = self.num_floors(building_components)
|
||||
num_basements = self.num_floors(building_components, key='building:levels:underground')
|
||||
|
||||
building_tags = self.normalize_address_components(tags)
|
||||
building_tags = self.normalize_address_components(building_components)
|
||||
|
||||
for k, v in six.iteritems(building_tags):
|
||||
if k not in revised_tags and k in (AddressFormatter.HOUSE_NUMBER, AddressFormatter.ROAD, AddressFormatter.HOUSE):
|
||||
|
||||
Reference in New Issue
Block a user