This page describes every data format the app reads, writes, or stores.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Miguelcds/App_AsignadorZonasBilbao/llms.txt
Use this file to discover all available pages before exploring further.
Input Excel file
The app accepts.xlsx and .xls files. The file must contain a column named exactly Calle.
| Requirement | Detail |
|---|---|
| Column name | Calle (case-sensitive) |
| Supported formats | .xlsx, .xls |
| Column position | Any column in the sheet |
| Other columns | Preserved unchanged in the output |
| Calle | Código Postal | Municipio |
|---|---|---|
| Gran Vía Don Diego López de Haro | 48001 | Bilbao |
| Calle Iparraguirre | 48011 | Bilbao |
| Calle Blas de Otero | 48014 | Bilbao |
If the
Calle column is missing, the app cannot assign zones and will report all rows as unmatched.Output Excel file
The app writes a new file namedCalles_Asignadas.xlsx. It contains all original columns plus a Zona column appended at the end.
| Property | Value |
|---|---|
| File name | Calles_Asignadas.xlsx |
| Sheet name | Calles con Zonas |
| New column | Zona |
| Unmatched rows | Zona cell left empty |
| Calle | Código Postal | Municipio | Zona |
|---|---|---|---|
| Gran Vía Don Diego López de Haro | 48001 | Bilbao | Bilbao Centro |
| Calle Iparraguirre | 48011 | Bilbao | Bilbao Centro |
| Calle Blas de Otero | 48014 | Bilbao | Deusto |
Dictionary format (js/data.js)
The standard dictionary is a plain JavaScript object named zonasEstandar. Each key is an uppercase string fragment that is matched as a substring against street values. Each value is the zone name string to assign.
- Keys must be uppercase. The matching algorithm uppercases the input before comparison, so mixed-case keys will not match.
- Keys are matched as substrings, not exact matches.
- Shorter or more generic keys (e.g.,
"GALICIA") carry a higher risk of false matches.
localStorage schema
Custom street entries are persisted in the browser’slocalStorage under the key 'zonasCustom_v1'. The value is a JSON-stringified object with the same shape as zonasEstandar: uppercase string keys mapped to zone name strings.
Key: 'zonasCustom_v1'
Value format:
zonasEstandar.
Clearing browser storage (e.g., via DevTools → Application → Local Storage) removes all custom entries. Export your custom dictionary as JSON before clearing storage if you want to keep your entries.
Unmatched streets export (.txt)
After processing, you can download a list of street values that had no zone match. The file is a plain text file with one street name per line.
Blob and URL.createObjectURL, then triggered as a browser download.
Custom dictionary export (JSON)
You can export your custom entries as a JSON file. The file contains thecustomStreets object formatted with two-space indentation: