Closed behnammodi closed 6 years ago
Try explicit request like:
var results = await this.$http.get('https://nominatim.openstreetmap.org/search?format=json&q=' + encodeURIComponent(this.query + ", Warsaw, Poland"));
But I agree that it's not how it should work ; )
@ignacy130 What's the difference?
@ignacy130 The problem is because you are using http instead of https. Unfortunately there is a pull request here (https://github.com/smeijer/leaflet-geosearch/pull/164) but is not merged yet. Nominatim project announced that from now on you have to use https. One easy way to do it,is to change the file inside dist folder.
Replace this:
return
${protocol}//nominatim.openstreetmap.org/search?${paramString}
;
with this
return
https://nominatim.openstreetmap.org/search?${paramString}
;
Hope it helps
Closed by 04cab81. Thanks for the support @ignacy130 and @rousos87. Sorry it took so long.
i have get error cors when use leaflet-geosearch