Skip to content

1.7 Prioritize results by proximity

In the previous viewer https://eines.icgc.cat/geocodificador_visor/ you can activate the box to prioritize the results closest to the center of the map, so that, if the map is centered on the municipality of Girona, when typing Biblioteca we get Girona libraries.

An example query is the following, where the coordinates of the center point of the map are set in the parameters focus.point.lat and focus.point.lon: https://eines.icgc.cat/geocodificador/autocompletar?text=bibli&focus.point.lat=41.430371882652814&focus.point.lon=1.8539428710937502&layers=topo1%2Ctopo2%2Caddress&size=5, where the text to be searched for and the point for which the answers are to be prioritized are indicated