feat(postcodes/BE): bulk-import 1,145 codes via bpost (#1039)#1438
Merged
Conversation
Adds Belgian postcodes via the jief/zipcode-belgium mirror of bpost
open data.
1. bin/scripts/sync/import_belgium_postcodes.py β pipeline reading the
2,757-row JSON (city,zip,lat,lng); groups by zip, picks first city
alphabetically per code. State resolution by postal-prefix range
following the standard Belgian convention (1000-1299 BRU,
1300-1499 WBR, 1500-1999 VBR, 2xxx VAN, 3000-3499 VBR, 3500-3999 VLI,
4xxx WLG, 5xxx WNA, 6000-6599 WHT + 6600-6999 WLX, 7xxx WHT,
8xxx VWV, 9xxx VOV).
2. contributions/postcodes/BE.json β 1,145 unique postcodes covering
all 10 provinces + Brussels-Capital 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: bpost open data
- Mirror: github.com/jief/zipcode-belgium
- Each row: source: "bpost"
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 Belgian postcodes via the
jief/zipcode-belgiummirror of bpost open data.bin/scripts/sync/import_belgium_postcodes.pyβ pipeline using the standard Belgian postal-prefix β province convention.contributions/postcodes/BE.jsonβ 1,145 codes, 100% state_id + 100% coords.Postal prefix β province
Validation (zero errors)
^(\d{4})$License
github.com/jief/zipcode-belgiumsource: "bpost"Refs: #1039