feat(postcodes/AU): bulk-import 3,175 codes via Australia Post (#1039)#1434
Merged
Conversation
Adds the importer + first run for Australia. Australia Post publishes
postcode data under CC-BY 4.0; this PR uses the community-maintained
matthewproctor/australianpostcodes mirror as the source-of-truth feed
(redistributable under the same CC-BY licence).
1. bin/scripts/sync/import_australia_post_postcodes.py — pipeline that
groups CSV rows by postcode and picks one canonical record per code
(first locality alphabetically). State resolution is direct iso2
match: CSV uses ACT/NSW/NT/QLD/SA/TAS/VIC/WA, identical to states.json.
2. contributions/postcodes/AU.json — 3,175 records covering all 8
Australian states/territories with 100% state_id and 100% coordinate
resolution.
Validation (zero errors)
- All codes match countries.postal_code_regex (^\\d{4}\$)
- All FKs resolve, all state_codes agree with state.iso2
- No auto-managed fields present
License & attribution
- Upstream: Australia Post (CC-BY 4.0)
- Mirror: github.com/matthewproctor/australianpostcodes
- Each row: source: "australia-post"
Refs: #1039
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
CSC Validation ReportPR Format
Labels applied:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Australian postcodes via the matthewproctor/australianpostcodes mirror (CC-BY 4.0 attributed to Australia Post).
bin/scripts/sync/import_australia_post_postcodes.py— pipeline grouping CSV rows by postcode, picking one canonical record per code (first locality alphabetically).contributions/postcodes/AU.json— 3,175 codes covering all 8 states/territories.Validation (zero errors across 3,175 records)
state_idresolvedpostal_code_regex(^\d{4}$)state_code↔state.iso2agreementState resolution
CSV state codes (ACT, NSW, NT, QLD, SA, TAS, VIC, WA) match
states.iso2exactly — no alias map needed.License
github.com/matthewproctor/australianpostcodessource: "australia-post"Cumulative postcode coverage after this lands
~212,000 postcode rows across 21 countries.
Refs: #1039