The base dictionary inDocumentation 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.
data.js covers ~500 Bilbao street patterns across 20 zones. When a street in your Excel file is not matched, the ➕ Nueva Calle tab lets you add it to a personal dictionary that is stored in the browser and takes priority over the base entries.
Adding a new entry
Open the Nueva Calle tab
Click the ➕ Nueva Calle button in the top navigation bar. The tab panel (
#tab-addstreet) becomes active.Enter the street name
Type the street name into the Nombre de la calle field (
#newStreetInput). You can type in any case — the value is automatically converted to uppercase before saving:Select or create a zone
Choose a zone from the Zona dropdown (
If the street belongs to a zone that is not in this list, select ✏ Zona personalizada… at the bottom of the dropdown. A text field (
#zoneSelect). The dropdown contains all 20 standard zones:| Zone name |
|---|
| Deusto |
| Deusto Muelle |
| Deusto Monte |
| San Ignacio |
| Matiko |
| Matiko Alto |
| Bilbao Centro |
| Bilbao-Basurtu |
| Bilbao Muelle |
| Kasko Viejo |
| Santutxu |
| Santutxu Alto |
| San Francisco |
| Miribilla |
| Zamakola |
| Zorroza |
| Zurbaranbarri |
| Rekalde |
| Txurdinaga |
| Txurdinaga - Alto |
#customZoneInput) appears where you can type any free-form zone name.Validation
Before saving, the app performs two checks:- Empty fields — if either the street name or the zone is blank, a red error message is shown and nothing is saved.
- Already in the base dictionary — if the uppercased key already exists in
zonasEstandar, saving is blocked:
You cannot overwrite a base-dictionary entry from the UI. If you need a different zone assignment for a street that is already in
data.js, you must edit data.js directly and reload the app.Priority over base entries
Custom entries always win. The dictionary used byasignarZona() is built by spreading customStreets on top of zonasEstandar:
Managing your custom entries
Mis Calles Personalizadas list
Every saved entry appears in the Mis Calles Personalizadas card below the form. Each row shows the uppercase key, an arrow, and the zone name. To remove a single entry, click the ✕ button on its row:Export to JSON
Click Exportar mis calles (JSON) (#exportCustomBtn) to download all your custom entries as calles_personalizadas.json. The file is a plain JSON object with uppercase keys and zone-name values:
Clear all entries
Click Eliminar todas (#clearCustomBtn) to delete every custom entry at once. The app asks for confirmation before proceeding. If you confirm, customStreets is reset to an empty object and localStorage is updated immediately.
Quick-add from the unmatched list
When you process an Excel file and some streets are not matched, the Calles No Identificadas section shows clickable tags. Clicking any tag:- Switches to the ➕ Nueva Calle tab automatically.
- Pre-fills
#newStreetInputwith the street name. - Moves focus to the input so you can select the zone and save immediately.