smeijer / leaflet-geosearch

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

Add error handler for HTTP errors #245

Open smeijer opened 3 years ago

smeijer commented 3 years ago

HTTP Status errors are currently unhandled. It is of course possible that the providers' backend is unreachable on some moments.

Simplest cause; the user is currently not connected to the internet. More troublesome; google/openstreetmap/algolia/... is experiencing server errors.

See https://github.com/smeijer/leaflet-geosearch/issues/173#issuecomment-717809230

Jyhem2000 commented 2 years ago

Very useful indeed, any news about this feature ?

smeijer commented 2 years ago

Still open for contributions 🙂