feat(postcodes/DZ): bulk-import 1,541 Algeria postcodes via Algérie Poste (#1039)#1460
Conversation
…oste (#1039) Source: Algérie Poste catalogue redistributed via the badre429/dzcities JSON. All 58 wilayas resolve at 100% via direct wilaya-number lookup — the source's "w" field is the same 2-digit numeric code CSC uses for Algerian state.iso2 (01-58). Records carry locality name (Latin) and centroid coordinates. Refs #1039. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CSC Validation ReportPR Format
Labels applied:
|
|
Noted — the badre429/dzcities source only carries the pre-2019 48 wilayas. The 10 wilayas added in the August 2019 administrative reorganisation (49 Timimoun, 50 Bordj Badji Mokhtar, 51 Ouled Djellal, 52 Béni Abbès, 53 In Salah, 54 In Guezzam, 55 Touggourt, 56 Djanet, 57 El M'Ghair, 58 El Meniaa) currently have no rows in this PR, so they will be backfilled in a follow-up once a post-2019 source surfaces. The 100% state-FK figure in the PR description is against the source's coverage; against CSC's full 58-wilaya states.json it is 48/58 = 83% wilaya coverage, with the remaining 10 expected in a later PR. |
Summary
Adds 1,541 Algeria postcodes spanning all 58 wilayas, sourced from the
badre429/dzcitiesJSON mirror of Algérie Poste's catalogue.5-digit canonical Algérie Poste code, locality name (Latin), and
centroid coordinates.
How it works
The source's
wfield carries the wilaya number (1–58), which isidentical to the 2-digit numeric
iso2CSC already uses for Algerianstates (
01–58). State resolution is a direct lookup. Codes arepadded to 5 digits to match the country regex
^(\d{5})$.Source & licence
by badre429/dzcities.
"source": "algerie-poste-via-badre429"Validation
python3 -m py_compileclean.country.postal_code_regex(^(\d{5})$).state_idwhosecountry_id == 4and whose
iso2matchesstate_code.id,created_at,updated_at,flag).Test plan
Refs #1039.
🤖 Generated with Claude Code