feat(postcodes/SM): add San Marino postcodes (#1039)#1405
Merged
Conversation
Adds the 9 San Marino postal codes (47890-47898) covering all 9 castelli (municipalities). San Marino uses the Italian CAP system; codes are stable and universally documented. Mapping (state_code -> code -> castello): 01 Acquaviva -> 47892 02 Chiesanuova -> 47894 03 Domagnano -> 47895 04 Faetano -> 47896 05 Fiorentino -> 47897 06 Borgo Maggiore -> 47893 07 San Marino -> 47890 (capital) 08 Montegiardino -> 47898 09 Serravalle -> 47891 source: "manual" — composed from common knowledge. SM uses the Italian CAP system with codes assigned per castello (1:1 mapping, unlike Italy itself). Validated: - 9 records pass schema rules - All country_id/state_id FKs resolve to SM and its castelli - All state_code values match state.iso2 - All codes match countries.postal_code_regex (^(4789\\d)$) Refs: #1039 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
CSC Validation ReportPR Format
Labels applied: Schema Validation (9 records)✅ All records passed validation Cross-Reference Validation✅ 18 reference(s) verified Source URL Verification✅ 1 source URL(s) accessible ✅ All checks passed | Status: Ready for review |
There was a problem hiding this comment.
Pull request overview
Adds San Marino (SM) postal codes to the new postcodes contributions dataset, enabling state-level postcode lookup for all 9 castelli.
Changes:
- Introduces
contributions/postcodes/SM.jsonwith 9 CAP codes (47890–47898). - Includes
state_id/state_codemappings to San Marino’s municipalities pluslocality_name,type, andsource.
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
Adds the 9 San Marino postal codes (47890–47898) covering all 9 castelli (municipalities). San Marino uses the Italian CAP system; the country code range
4789xis reserved for it and each castello has a unique code (a clean 1:1 mapping, unlike Italy proper where one code spans many cities).Mapping
Source
source: "manual"— composed from common knowledge. SM postal codes are stable and universally documented; the country'spostal_code_format(4789#) and regex (^(4789\d)$) already exist incountries.jsonand were used to validate every code.Validation
.github/scripts/utils.jscountry_id: 192/country_code: "SM"agreestate_idvalues resolve to SM castelli, andstate_codematches the correspondingstate.iso2countries.postal_code_regexfor SM (^(4789\d)$)Refs: #1039
🤖 Generated with Claude Code