The π Consultar tab lets you check a single street name against the full dictionary (base + custom) without uploading a file. It is useful for spot-checking entries or verifying that a newly added custom street resolves correctly.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.
How to look up a street
Open the Consultar tab
Click π Consultar in the navigation bar. The tab panel (
#tab-search) becomes active and the dictionary statistics grid is populated automatically.Type a street name
Type any street name β or a partial substring β into the
#lookupInput field. You do not need to use uppercase; the lookup function normalises the input internally.Submit the query
Either click the Consultar button (
#lookupBtn) or press Enter. Both trigger the same doLookup() function:The doLookup function
doLookup() reads the current value of lookupInput, calls asignarZona(), and renders one of two states:
asignarZona() in turn iterates over the merged dictionary using .includes() substring matching:
Substring matching explained
BecauseasignarZona() checks whether the input contains the dictionary key (not whether they are equal), partial names work:
| You type | Matched key | Result |
|---|---|---|
AV MADARIAGA | AV MADARIAGA | Deusto |
AV MADARIAGA 14 | AV MADARIAGA | Deusto |
CALLE AV MADARIAGA | AV MADARIAGA | Deusto |
GENERAL EGUIA 3 | GENERAL EGUIA | Bilbao Centro |
RI DEUSTU BLOQUE 2 | RI DEUSTU | Deusto Muelle |
CALLE INVENTADA | (no match) | (empty β not found) |
The lookup always uses the merged dictionary: base entries from
data.js plus any custom entries you have saved. If you recently added a custom entry, it will be found here immediately.Dictionary statistics
Below the search card, the π EstadΓsticas del Diccionario section (#dictStats) shows a grid with the number of entries per zone. The grid is rendered by renderDictStats() whenever you switch to this tab: