Skip to content

feat(postcodes/NA): 149 NamPost postcodes β€” all 14 regions (#1039)#1536

Merged
dr5hn merged 1 commit into
masterfrom
feat/postcodes-namibia
May 6, 2026
Merged

feat(postcodes/NA): 149 NamPost postcodes β€” all 14 regions (#1039)#1536
dr5hn merged 1 commit into
masterfrom
feat/postcodes-namibia

Conversation

@dr5hn
Copy link
Copy Markdown
Owner

@dr5hn dr5hn commented May 6, 2026

Summary

Adds NA postcode coverage β€” 149 NamPost codes spanning all 14 Namibian regions. Resolves a Tier-E gap from bin/scripts/sync/POSTCODES_1039_SOURCES_RESEARCH.md.

Records State FK match Regex fail
149 149 (100%) 0

Source

  • Repo: KuberKode/namibia-postal-codes β€” JSON mirror of NamPost (Namibia Post Limited) public postal-code directory.
  • License: Unlicense (public-domain dedication, no attribution required).
  • Per-row attribution: source: "nampost-via-kuberkode".

State FK resolution

Source RegionCode is ISO 3166-2 (NA-ER, NA-HA, etc.). Strip the NA- prefix and the remaining 2-letter code matches CSC's states.json directly for all 14 regions β€” no aliasing needed.

Importer

  • bin/scripts/sync/import_namibia_postcodes.py β€” fetches the JSON, walks Country.Regions[].Locations[], idempotent merge by (code, locality_name).

πŸ€– Generated with Claude Code

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 6, 2026
@dosubot dosubot Bot added the enhancement New feature or request label May 6, 2026
5-digit postcodes for all 14 Namibian regions (Erongo, Hardap, Karas,
Kavango East/West, Khomas, Kunene, Ohangwena, Omaheke, Omusati, Oshana,
Oshikoto, Otjozondjupa, Zambezi). 100% state FK match via direct
ISO 3166-2 RegionCode β†’ CSC iso2 mapping.

Source: KuberKode/namibia-postal-codes (Unlicense), based on NamPost's
public postal-code directory.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dr5hn dr5hn force-pushed the feat/postcodes-namibia branch from 8fd21c4 to 69d239f Compare May 6, 2026 13:00
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels May 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

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 (149 records)

βœ… All records passed validation

Cross-Reference Validation

βœ… 298 reference(s) verified

Source URL Verification

βœ… 2 source URL(s) accessible


βœ… All checks passed | Status: Ready for review

@dr5hn dr5hn merged commit ffe5664 into master May 6, 2026
1 check passed
@dr5hn dr5hn deleted the feat/postcodes-namibia branch May 6, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:cities data:postcodes enhancement New feature or request large-contribution 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.

1 participant