feat(postcodes/SE): bulk-import 16,361 codes via SE community mirror (#1039)#1442
Merged
Conversation
…1039) Adds Swedish postcodes via the zegl/sweden-zipcode community CSV. 1. bin/scripts/sync/import_sweden_postcodes.py — pipeline reading Zip,City CSV. Formats codes in '### ##' form to match the SE regex. 2. contributions/postcodes/SE.json — 16k+ records. state_id is null on every row: Swedish postcodes are organised by sorting-route geography, not administrative county. Without a kommune-postcode crosswalk the source CSV does not include, no reliable state assignment is possible. State backfill remains a follow-up using Skatteverket open ortsdata. License & attribution - Mirror: github.com/zegl/sweden-zipcode - Each row: source: 'se-zipcode' 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.
Adds Swedish postcodes (~16k) via the zegl/sweden-zipcode community CSV.
state_id is null on every row. Swedish postcodes were assigned by sorting-route geography rather than administrative county boundaries, so there is no reliable prefix-to-county mapping; the source CSV has no kommune column. State backfill is a follow-up using a kommune-postcode crosswalk from Skatteverket open ortsdata.
Codes formatted as
### ##to match the SEpostal_code_regex.Refs: #1039