smeijer / leaflet-geosearch

A geocoding/address-lookup library supporting various api providers.
https://smeijer.github.io/leaflet-geosearch/
MIT License
1.02k stars 270 forks source link

geosearch returns incorrect bounds sometimes #391

Closed koskinpark closed 3 months ago

koskinpark commented 5 months ago

Open https://smeijer.github.io/leaflet-geosearch/providers/openstreetmap Type "France" in the search bar -> select France in autocomplete

This is what you will see:

Снимок экрана 2024-01-26 в 18 00 30
mtmail commented 5 months ago

I don't think the javascript library can do anything about that. You'd need an issue with the underlying API which returns the data.

France has territories around the world. https://en.wikipedia.org/wiki/Overseas_France It's still unexpected, but geographically correct. What most people expect is Metropolitan France https://www.openstreetmap.org/relation/1403916