[Qgis-user] Error! No Internet connection? OSM Place Search plugin error

Keith Jenkins kgjenkins at gmail.com
Wed Sep 13 09:41:22 PDT 2023


Hi, Jared.

Yes, the problem seems to be when checking the "Add address search"
box under the "Appearance" tab in qgis2web and exporting to OpenLayers
(as noted by Andrea).

I checked the network traffic from an exported map, which is making a
request like:
https://nominatim.openstreetmap.org/search/?q=kinshasa&format=json&addressdetails=1&limit=5&countrycodes=&accept-language=en-US

According to the response to that request, the Nominatim API has been
changed, making the request invalid.  However, it is an easy fix,
since a single slash just needs to be removed.

In the ol-geocoder.js file that is created by qgis2web, search for:
"https://nominatim.openstreetmap.org/search/"

and change it to
"https://nominatim.openstreetmap.org/search"

And then the search box should work.

Cheers,
Keith


More information about the QGIS-User mailing list