diff options
Diffstat (limited to 'src/plugins/geoservices/osm/qplacesearchreplyosm.cpp')
-rw-r--r-- | src/plugins/geoservices/osm/qplacesearchreplyosm.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/geoservices/osm/qplacesearchreplyosm.cpp b/src/plugins/geoservices/osm/qplacesearchreplyosm.cpp index cdb696dd..0228a975 100644 --- a/src/plugins/geoservices/osm/qplacesearchreplyosm.cpp +++ b/src/plugins/geoservices/osm/qplacesearchreplyosm.cpp @@ -192,6 +192,13 @@ QPlaceResult QPlaceSearchReplyOsm::parsePlaceResult(const QJsonObject &item) con place.setName(title); + if (!requestUrl.isEmpty()) { + QPlaceAttribute attribute; + attribute.setLabel("requestUrl"); + attribute.setText(requestUrl); + place.setExtendedAttribute("requestUrl", attribute); + } + QGeoAddress address; address.setCity(addressDetails.value(QStringLiteral("city")).toString()); address.setCountry(addressDetails.value(QStringLiteral("country")).toString()); |