Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Make admin1 required in Australia and Turkey

Open
#211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
localization

Research direction

Review the country format files for Australia and Turkey, then compare them with the Malaysia, Argentina, and Ireland cases discussed in the issue. Update the requiredness of admin1 for Australia and Turkey while leaving the comparison cases unchanged; done means those two countries require admin1 and the other reviewed formats retain their current behavior.

Written by the indexing model from the issue text.

Description

I believe that admin level 1 should be required for the following countries, even though they are currently optional in the format files.

Australia. See https://auspost.com.au/sending/check-sending-guidelines/addressing-guidelines for the postal guidelines: "The last line should contain the place name or post office of delivery, state or territory abbreviation and postcode. This line should be printed in capitals without punctuation or underlining, with the postcode put last.".

Turkey. See https://docs.informatica.com/data-as-a-service/address-verification/h2l/address-verification-best-practices-for-turkey/address-verification-best-practices-for-turkey/key-address-elements.html

I have also checked every other country in the data set where admin1 is supported but optional. I think it's just the following three, and they look correct to me.

Malaysia. The examples on https://www.pos.com.my/business/business-mail-solutions/products/standard-mail.html include some with the province written and some without it.

Argentina. See https://docs.informatica.com/data-as-a-service/address-verification/h2l/address-verification-best-practices-for-argentina/address-verification-best-practices-for-argentina/key-address-elements.html.

Ireland. See https://correctaddress.anpost.ie/pages/Search.aspx, where the county should be shown on an envelope "where required". That implies it is not always required. As a concrete example where that is true, addresses in Dublin frequently leave off the "Co. Dublin" when formatting the address.

Dominant language
C++
Stars
629
Forks
109
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/libaddressinput

All issues in google/libaddressinput

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.