class QPlaceMatchRequest

The QPlaceMatchRequest class is used to find places from one manager that match those from another. It represents a set of request parameters. More

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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.

PySide6.QtLocation.QPlaceMatchRequest.AlternativeId
__init__()

Default constructor. Constructs a new request object.

__init__(other)
Parameters:

otherQPlaceMatchRequest

Constructs a copy of other.

clear()

Clears the match request.

__ne__(rhs)
Parameters:

rhsQPlaceMatchRequest

Return type:

bool

Returns true if lhs is not equal to rhs, otherwise returns false.

__eq__(rhs)
Parameters:

rhsQPlaceMatchRequest

Return type:

bool

Returns true if lhs is equal to rhs, otherwise returns false.

parameters()
Return type:

Dictionary with keys of type .QString and values of type QVariant.

Returns the parameters for matching places.

See also

setParameters()

places()
Return type:

.list of QPlace

Returns a list of places which are to be matched.

See also

setPlaces()

setParameters(parameters)
Parameters:

parameters – Dictionary with keys of type .QString and values of type QVariant.

Sets the parameters for matching places.

See also

parameters()

setPlaces(places)
Parameters:

places – .list of QPlace

Sets a list of places which are to be matched.

setResults(results)
Parameters:

results – .list of QPlaceSearchResult

Convenience function which uses a set of search results to set the places which should be matched.

See also

setPlaces()

swap(other)
Parameters:

otherQPlaceMatchRequest