smeijer / leaflet-geosearch

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

Nominatim/OSM provider no longer works on http #161

Closed devdattaT closed 6 years ago

devdattaT commented 6 years ago

The Nominatim API has moved to https, and provides a 302 Redirect whenever queried over http. This breaks the geocoder, if your page is on HTTP.

The solution would be to hardcode the API to use https for the request.