Nigeria (NG): postal code format is out of date since the 2026 digital postcode
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- data
Research direction
Start by finding the Nigeria (NG) address-data entry corresponding to https://chromium-i18n.appspot.com/ssl-address/data/NG and check how nearby country entries are validated or tested. Compare the current six-digit pattern with the supplied NDAPS format and examples; done means the new formats and legacy six-digit codes validate, and the postcode URL and examples are updated.
Written by the indexing model from the issue text.
Description
The address data for Nigeria still describes the old six-digit postal code:
https://chromium-i18n.appspot.com/ssl-address/data/NG
"zip": "\d{6}", "zipex": "930283,300001,931104", "posturl": "http://www.nigeriapostcodes.com/"
On 1 October 2026 Nigeria launched the National Digital Alphanumeric Postcode System (NDAPS), which gives every building an 11-character code such as FC 02 A09 DB 09 or EK-01-A03-FK-01. Addresses carrying the new code fail validation against \d{6}.
Format, from NIPOST's developer documentation:
| Segment | Example | Shape |
|---|---|---|
| State | EK |
2 letters |
| LGA | 01 |
2 digits, 01 to 99 |
| District | A03 |
3 letters or digits |
| Area | FK |
2 letters |
| Building unit | 01 |
2 digits, 01 to 99 |
It is written with hyphens (EK-01-A03-FK-01), with spaces (EK 01 A03 FK 01), or compact (EK01A03FK01).
Sources
- Government announcement: https://fmcide.gov.ng/federal-government-launches-national-digital-alphanumeric-postcode-system/
- NIPOST's postcode site: https://postcode.gov.ng/
- Format specification: https://docs.postcode.gov.ng/concepts/postcode-format
Suggested data
A pattern that accepts the new code and keeps the six-digit one valid:
[A-Z]{2}[ -]?(?:0[1-9]|[1-9]\d)[ -]?[A-Z\d]{3}[ -]?[A-Z]{2}[ -]?(?:0[1-9]|[1-9]\d)|\d{6}
zipex:FC 02 A09 DB 09,EK-01-A03-FK-01,930283posturl:https://postcode.gov.ng/
I maintain open-source parsers for the format with shared test vectors, which may help when checking the pattern: https://github.com/Adeniyikayodee/ng-postcode/blob/main/spec/vectors.json
- Dominant language
- C++
- Stars
- 629
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/libaddressinput
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
google/libaddressinput#245 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
google/libaddressinput#254 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 52/100
google/libaddressinput#250 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
google/libaddressinput#249 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
google/libaddressinput#244 · 2 comments ·
All issues in google/libaddressinput
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
flashinfer-ai/flashinfer#6212 ·
Maintainers usually reply within 1 day
-
bug graphics
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
FlaxEngine/FlaxEngine#4295 · 2 comments ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Algorithmiq/monoprop#390 ·
Maintainers usually reply within 1 day
-
docs
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
leethomason/tinyxml2#1097 ·