feat(postcodes/AX): 37 Åland Islands codes (#1039)#1514
Merged
Conversation
Adds Åland Islands' 37 postal codes from Posti.fi's PCF DAT (Åland-region records, FI200), shipping to AX.json under the separate CSC country code AX (Åland Islands, country_id=2). Why --- Closes the AX gap on issue #1039. Posti's PCF file carries Åland records under region FI200 / Ahvenanmaa. Companion FI importer skips these so they ship to AX as a separate country. Coverage -------- - 37 codes / 100% state FK - All 16 Åland municipalities covered State FK strategy ----------------- Direct municipality-name match against CSC's 16 AX states (Swedish form). One alias for Finnish->Swedish drift: 'Maarianhamina' -> 'Mariehamn' (the canonical Swedish form; Åland's only official language is Swedish). Source pipeline --------------- Same URL probe as FI importer (PCF_<YYYYMMDD>.dat, ~30-day-back HEAD probe, ISO-8859-1 fixed-width parse), filtered to FI200 region. License ------- Source: Posti.fi PCF (Tier 5 per #1039 license-tier policy). Each row: source: "posti-fi-pcf" Validation ---------- - python3 -m py_compile passes - 100% regex match (^(?:FI)*\d{5}$) - 100% state_id valid + state.country_id == 2 + state_code agrees - No auto-managed fields (id, created_at, updated_at, flag) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
CSC Validation ReportPR Format
Labels applied: Schema Validation (37 records)✅ All records passed validation Cross-Reference Validation✅ 74 reference(s) verified Source URL Verification✅ 1 source URL(s) accessible ✅ All checks passed | Status: Ready for review |
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
Source
FI200/ region nameAhvenanmaa)State FK strategy
Direct municipality-name match against CSC's 16 AX states (Swedish form). Single alias for Finnish→Swedish drift:
'Maarianhamina'(Finnish) →'Mariehamn'(Swedish — Åland's only official language is Swedish)All 16 municipalities covered
Brändö, Eckerö, Finström, Föglö, Geta, Hammarland, Jomala, Kumlinge, Kökar, Lemland, Lumparland, Mariehamn, Saltvik, Sottunga, Sund, Vårdö
Test plan
python3 -m py_compile bin/scripts/sync/import_aland_postcodes.py^(?:FI)*\d{5}$id,created_at,updated_at,flag)🤖 Generated with Claude Code