feat: postal codes from GeoNames for the ISTAT municipalities (#45)
The municipalities now come with their postal codes, so the lookup from postal code works on a new company without loading anything. GeoNames (CC BY 4.0) lists places rather than municipalities: a postal code goes to a municipality only when the name and the province abbreviation match exactly one of them (the name alone within Sardinia, whose abbreviations changed), which covers 7,750 of 7,894 municipalities; the rest are mostly renamed or merged ones that users complete by hand. tools/Khaemhat.PlacesTool rebuilds both lists from the ISTAT sheet and the GeoNames file, framework only, so the yearly update is repeatable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
321aae7e81
commit
a9eda510f2
15 files changed
+8192
-7936
No files matched your search
@@ -35,8 +35,8 @@ grandi (8.000 comuni, decine di migliaia di sportelli) che non sono nel reposito
|
||||
6. **Elenchi pubblici caricati a parte.** Province, comuni con CAP e banche ABI/CAB non sono nel seed di 0.4.0:
|
||||
arriveranno come file di dati con origine e licenza indicate (ISTAT, CC BY 4.0, per province e comuni) dopo il
|
||||
via dell'utente al download. Fino ad allora le tabelle si riempiono a mano o con l'import CSV.
|
||||
*Aggiornato dall'ADR 0028:* province e comuni ISTAT sono nei dati di base dalla versione `IT 2026.3`; CAP e
|
||||
banche restano fuori.
|
||||
*Aggiornato dall'ADR 0028:* province e comuni ISTAT, con i CAP di GeoNames, sono nei dati di base dalla
|
||||
versione `IT 2026.3`; le banche restano fuori.
|
||||
7. **Riga di comando.** `scripts/seed.sh --base [--company CODICE]` esegue la sequenza di avvio senza servire pagine
|
||||
(migrazioni, prima azienda) e aggiunge i dati di base a un'azienda o a tutte quelle attive. Nel container lo
|
||||
script è in `/app/scripts/` e passa da `entrypoint.sh` con il verbo `seed`; in sviluppo usa `dotnet run`.
|
||||
|
||||
Reference in new issue
Block a user