diff --git a/scripts/geodata/openaddresses/formatter.py b/scripts/geodata/openaddresses/formatter.py index 35268358..8ec5605b 100644 --- a/scripts/geodata/openaddresses/formatter.py +++ b/scripts/geodata/openaddresses/formatter.py @@ -427,7 +427,7 @@ class OpenAddressesFormatter(object): components[AddressFormatter.POSTCODE] = PostalCodes.add_country_code(postcode, country) # If there's a postcode, we can still use just the city/state/postcode, otherwise discard - if (not street and street_required and not house_number) or (street and house_number and (street.lower() == house_number.lower())) or (unit and street and street.lower() == unit.lower()): + if (not street and street_required) or (street and house_number and (street.lower() == house_number.lower())) or (unit and street and street.lower() == unit.lower()): if not postcode: continue components = self.components.drop_address(components)