summaryrefslogtreecommitdiff
path: root/src/location/places
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-10-11 13:09:41 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-11-01 11:41:39 +0000
commita7d1e0bd6d4bf7c1035e32acd95daeef8af9edc8 (patch)
tree3b63673879ea86204688f0127352dc9371fe6cd9 /src/location/places
parent5c41bffd2ff58a8d55b3da1eaaebee90c327445a (diff)
downloadqtlocation-a7d1e0bd6d4bf7c1035e32acd95daeef8af9edc8.tar.gz
Allow searching along a QGeoRoute
The result will be backend-dependent. If a backend does not support this, it will be the same as not specifying a search area. The current approach does not expose any new public API, but also does not allow specifying the distance from the route. If this will become necessary, public API might have to be extended. Task-number: QTBUG-69649 Change-Id: I9230d502a6cdb55c620e3a57a0e78cdb6f8955a6 Reviewed-by: Michael Brasser <michael.brasser@live.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'src/location/places')
-rw-r--r--src/location/places/qplacesearchrequest_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/places/qplacesearchrequest_p.h b/src/location/places/qplacesearchrequest_p.h
index fdff89b8..73360926 100644
--- a/src/location/places/qplacesearchrequest_p.h
+++ b/src/location/places/qplacesearchrequest_p.h
@@ -56,6 +56,7 @@
#include <QtCore/QList>
#include <QtLocation/private/qlocationglobal_p.h>
#include <QtCore/QVariant>
+#include <QtLocation/QGeoRoute>
QT_BEGIN_NAMESPACE
@@ -79,6 +80,7 @@ public:
QString recommendationId;
QLocation::VisibilityScope visibilityScope;
QPlaceSearchRequest::RelevanceHint relevanceHint;
+ QGeoRoute routeSearchArea;
int limit;
QVariant searchContext;
bool related = false;