summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2019-10-21 00:18:32 +0200
committerpaolo <paolo.angelelli@qt.io>2019-10-31 11:17:32 +0100
commit32b6b1c8266876cae07839529ebae0b5f5047ba7 (patch)
tree24ccb13876e2beb10a82fb0e4c79ddb54ff9b1fc
parent60925ff5d4aaf211090b246618b492cf177cf21d (diff)
downloadqtlocation-32b6b1c8266876cae07839529ebae0b5f5047ba7.tar.gz
Fix OSM parsing of place_id
Something must have changed in Qt json API/parser, or in the return value of nominatim. Either way, place_id is now an int. Change-Id: Ic340bed9c556665ce1114966d6b9157a3f380ad3 (cherry picked from commit 7533c81ccef992b0e932b299cdb1257d21e012d2) Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/plugins/geoservices/osm/qplacesearchreplyosm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/osm/qplacesearchreplyosm.cpp b/src/plugins/geoservices/osm/qplacesearchreplyosm.cpp
index d65b0735..366ff852 100644
--- a/src/plugins/geoservices/osm/qplacesearchreplyosm.cpp
+++ b/src/plugins/geoservices/osm/qplacesearchreplyosm.cpp
@@ -184,7 +184,7 @@ QPlaceResult QPlaceSearchReplyOsm::parsePlaceResult(const QJsonObject &item) con
//double importance = item.value(QStringLiteral("importance")).toDouble();
place.setAttribution(item.value(QStringLiteral("licence")).toString());
- place.setPlaceId(item.value(QStringLiteral("place_id")).toString());
+ place.setPlaceId(QString::number(item.value(QStringLiteral("place_id")).toInt()));
QVariantMap iconParameters;
iconParameters.insert(QPlaceIcon::SingleUrl,