diff --git a/scripts/geodata/openaddresses/formatter.py b/scripts/geodata/openaddresses/formatter.py index d14fe82b..40b62623 100644 --- a/scripts/geodata/openaddresses/formatter.py +++ b/scripts/geodata/openaddresses/formatter.py @@ -422,6 +422,9 @@ class OpenAddressesFormatter(object): postcode = components.get(AddressFormatter.POSTCODE, None) + if postcode: + components[AddressFormatter.POSTCODE] = PostalCodes.add_country_phrase(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 postcode: