QPlaceMatchRequest Class▲
-
Header: QPlaceMatchRequest
-
qmake: QT += location
-
Group: QPlaceMatchRequest is part of QtLocation-places, QtLocation-places-requests
Detailed Description▲
Places from another manager that may have corresponding/matching places in the current manager are assigned using setPlaces() or setResults(). A set of further parameters are specified which determines the criteria for matching.
The typical key for matching is the QPlaceMatchRequest::AlternativeId, the value is an alternative identifier attribute type of the format x_id_<provider name> for example x_id_here. The provider name is name supplied to the QGeoServiceProvider instance.
See Matching places between managers for an example on how to use a match request.
See Also▲
See also QPlaceMatchReply, QPlaceManager
Member Function Documentation▲
QPlaceMatchRequest::QPlaceMatchRequest()▲
Default constructor. Constructs a new request object.
QPlaceMatchRequest::QPlaceMatchRequest(const QPlaceMatchRequest &other)▲
Constructs a copy of other.
QPlaceMatchRequest::~QPlaceMatchRequest()▲
Destroys the request object.
void QPlaceMatchRequest::clear()▲
Clears the match request.
QVariantMap QPlaceMatchRequest::parameters() const▲
QList<QPlace> QPlaceMatchRequest::places() const▲
void QPlaceMatchRequest::setParameters(const QVariantMap ¶meters)▲
void QPlaceMatchRequest::setPlaces(const QList<QPlace> &places)▲
void QPlaceMatchRequest::setResults(const QList<QPlaceSearchResult> &results)▲
Convenience function which uses a set of search results to set the places which should be matched.
See Also▲
See also setPlaces()
QPlaceMatchRequest &QPlaceMatchRequest::operator=(const QPlaceMatchRequest &other)▲
Assigns other to this search request and returns a reference to this match request.
Member Variable Documentation▲
const QString QPlaceMatchRequest::AlternativeId▲
The key to specify that matching is to be accomplished via an alternative place identifier.