Solved GeocodeModel does not work
-
@Samuel-Ives
i know that GeoCodeModel (usingosm
) was broken in Qt 5.10 (or at least in the meantime broken) and working again with 5.12.
I can't tell if that was still the case with Qt 5.11 -
esri is not working either, I do not think it's a plugin specific problem
-
@Samuel-Ives could it be possible you do network traffic capture (i.e. using Wireshark) to check if the request(s) made by the plugin(s) (either osm or esri) are reaching the Internet and what response(s) do you received, if any?
At least you could figure out if the problem is the request/response (network operations) or the display of information received? -
@Samuel-Ives
I got the same behavior when i usedgeoAt.query = fromAddress.text
instead ofgeoAt.query = fromAddress
Edit: It is possible to know if something wrong happens if you connect onStatusChanged signal with a function.
onStatusChanged: { if(status === GeocodeModel.Ready){ console.log("Sucess, the request has been found "+count+" result(s)."); } else if(status === GeocodeModel.Error){ console.log("Error: " + errorString); } }
-
onStatusChanged: { switch(geoAt.status){ case GeocodeModel.Loading: console.log("Loading") break; case GeocodeModel.Ready: console.log("Ready") break; case GeocodeModel.Error: console.log("Error: ", errorString) break; } }
I got this
qml: Endereco: Sandakerveien 116<br/>0484 Oslo<br/>Norway
qml: Loading
qml: Enderecos obtidos: 0
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
qml: Error: TLS initialization failedThe strangest thing is that I do not remember any time using SSL
-
The strangest thing is that I do not remember any time using SSL
From you 1st post:
PluginParameter{name: "osm.mapping.custom.host"; value: "https://tile.openstreetmap.org"}
Are you still using the same values? if so, that could be the answer...
-
@Samuel-Ives
https://doc.qt.io/qt-5/location-plugin-osm.html#overviewSince Qt 5.9.6 the default nominatim endpoint, used for geocoding and places, has also changed to HTTPS-only.
-
Well, I compiled the openssl source code, I added the libraries in my project and added the dlls, but it still has the same error
-
-
the version returned was OpenSSL 1.0.2p, and the one I compiled was 1.1.1, could that influence something? What I find strange is that I'm not using a ssl resource directly, just that url, the compiler does not accuse me of linking errors regarding openssl
-
Problem solved, I downloaded the dlls from here and it worked http://slproweb.com/products/Win32OpenSSL.html, I'm already getting the coordinates, the libraries were not being loaded because they had a different name