google / libaddressinput

Google’s postal address library, powering Android and Chromium
Apache License 2.0
572 stars 103 forks source link

Ireland postcode should be on its own line #202

Closed anssih closed 3 years ago

anssih commented 3 years ago

Currently in the formatted output the Irish country and postcode (eircode) are on the same line, separated by space:

Co. Cork A12 B3CD

However, according to various official sources (https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/irlEn.pdf, https://www.eircode.ie/faqs section "Where should I write the Eircode on a letter?") and unofficial sources (e.g. https://www.quora.com/What-is-the-mailing-address-format-for-Ireland), it should go after the county on a separate line:

Co. Cork A12 B3CD

This is similar how it works in e.g. UK.

I.e. the format code should be changed as follows:

"%N%n%O%n%A%n%D%n%C%n%S %Z" => "%N%n%O%n%A%n%D%n%C%n%S%n%Z"

sockix commented 3 years ago

Thanks for the feedback.

This has been updated.