summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/osm/qplacemanagerengineosm.cpp
diff options
context:
space:
mode:
authorMatthias Rauter <matthias.rauter@qt.io>2023-02-16 15:55:05 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-02-20 10:27:02 +0000
commit992f57fcf993b9804dcda9b12bf4d67ed102f284 (patch)
tree759ea3a62c54a72397c737d8dc88b926df1fd29d /src/plugins/geoservices/osm/qplacemanagerengineosm.cpp
parente770809db4b6c92ee4be22b5ea021ccc505cec8f (diff)
downloadqtlocation-992f57fcf993b9804dcda9b12bf4d67ed102f284.tar.gz
Improve compatibility between OSM plugin and places example
The categories are searched as well as possible. However, searches for e.g. all shops are not possible with OSM since a recent API change. The category is written into the PlacesReply object so that they can be displayed in the ui. Pick-to: 6.5 Change-Id: Ic08e5bef393313672775b6f39d365484ee8b0c58 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/geoservices/osm/qplacemanagerengineosm.cpp')
-rw-r--r--src/plugins/geoservices/osm/qplacemanagerengineosm.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/geoservices/osm/qplacemanagerengineosm.cpp b/src/plugins/geoservices/osm/qplacemanagerengineosm.cpp
index 6eb035b9..60bc55ff 100644
--- a/src/plugins/geoservices/osm/qplacemanagerengineosm.cpp
+++ b/src/plugins/geoservices/osm/qplacemanagerengineosm.cpp
@@ -129,9 +129,6 @@ QPlaceSearchReply *QPlaceManagerEngineOsm::search(const QPlaceSearchRequest &req
for (const QPlaceCategory &category : request.categories()) {
QString id = category.categoryId();
- int index = id.indexOf(QLatin1Char('='));
- if (index != -1)
- id = id.mid(index+1);
queryParts.append(QLatin1Char('[') + id + QLatin1Char(']'));
}