Skip to content

feat(postcodes/IS): bulk-import 195 codes via iceaddr (#1039)#1443

Merged
dr5hn merged 1 commit into
masterfrom
feat/postcodes-iceland-bulk
Apr 27, 2026
Merged

feat(postcodes/IS): bulk-import 195 codes via iceaddr (#1039)#1443
dr5hn merged 1 commit into
masterfrom
feat/postcodes-iceland-bulk

Conversation

@dr5hn
Copy link
Copy Markdown
Owner

@dr5hn dr5hn commented Apr 27, 2026

Adds Icelandic postcodes via the sveinbjornt/iceaddr Python package (MIT, embeds Pósturinn data).

195 codes, 100% state_id. Region resolution via prefix → Statistics Iceland NUTS-3 boundaries (1xx-2xx Capital, 3xx Western, 4xx Westfjords, 5xx Northwestern, 6xx Northeastern, 7xx Eastern, 8xx-9xx Southern). Locality names combine stadur_nf + lysing.

Refs: #1039

Adds Icelandic postcodes via the sveinbjornt/iceaddr Python package
which embeds the canonical postcode metadata under MIT licence.

1. bin/scripts/sync/import_iceland_postcodes.py — pipeline that
   dynamically imports the iceaddr POSTCODES dict and resolves each
   code's region via prefix range to states.json iso2 1-8 (Statistics
   Iceland's NUTS-3 boundaries: 1xx-2xx Capital, 3xx Western, 4xx
   Westfjords, 5xx Northwestern, 6xx Northeastern, 7xx Eastern,
   8xx-9xx Southern).

2. contributions/postcodes/IS.json — 195 records with 100% state_id
   resolution. Locality names combine stadur_nf + lysing
   (e.g. "Reykjavík, Miðborg").

License & attribution
- Source: iceaddr (MIT) embedding Pósturinn data
- Each row: source: "iceaddr"

Refs: #1039

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 27, 2026 11:37
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request labels Apr 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

CSC Validation Report

PR Format

  • ✅ Description provided
  • ❌ Data source linked
  • ✅ Issue linked (recommended for data changes)
  • ✅ Justification / context provided

Labels applied: data:postcodes

Schema Validation (195 records)

✅ All records passed validation

Cross-Reference Validation

✅ 390 reference(s) verified


All checks passed | Status: Ready for review

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds Icelandic postcode coverage by introducing a generated IS.json dataset and a companion import script that builds it from the sveinbjornt/iceaddr source.

Changes:

  • Add contributions/postcodes/IS.json with 195 Icelandic postcode records including state mapping and locality names.
  • Add bin/scripts/sync/import_iceland_postcodes.py to import/merge postcodes from an iceaddr postcodes.py file and write the JSON output.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
contributions/postcodes/IS.json New Iceland postcode dataset (codes, locality names, resolved state IDs/codes, and source attribution).
bin/scripts/sync/import_iceland_postcodes.py New importer script to generate/merge IS.json from the iceaddr upstream data.

@dr5hn dr5hn merged commit 26a7501 into master Apr 27, 2026
5 checks passed
@dr5hn dr5hn deleted the feat/postcodes-iceland-bulk branch April 27, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:postcodes enhancement New feature or request ready-for-review size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants