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-21 14:22:25 +0200
commit7533c81ccef992b0e932b299cdb1257d21e012d2 (patch)
treef37c27e4e994a563dd3fdb23fbda4f9c00806c52
parent9ac4e00e21f5fd7a1a53343d1cf9f4fcaeff01a5 (diff)
downloadqtlocation-7533c81ccef992b0e932b299cdb1257d21e012d2.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 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 80c50d1b..3535830d 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,