You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
We may have different names for the same place even in the official language(s) of the country, having a strict match to geocode leads to many fails and "holes" in the results. V.g.:
Gipuzkoa <> Guipúzcoa
Xaló <> Jalón
A Coruña <> La Coruña
JAEN <> Jaén
As of today, loading a CSV with provinces of Spain may produce several holes always due to accents (accents in uppercase are not compulsory, so JAEN <> Jaén), optional articles, and the different co-official languages in different regions.
Maybe we should make use of fuzzy search like tsvector or trigrams
Tsvector sample pseudocode:
SELECT
the_geom
FROM
geometries_table
ORDER BY
ts_rank(to_tsvector(storedname),to_tsquery(inputname))
ASCLIMIT1;
It would be much faster if we precompute a tsvector column in the geometries table.