PySide6.QtLocation.QPlaceMatchRequest¶
- class QPlaceMatchRequest¶
The
QPlaceMatchRequestclass is used to find places from one manager that match those from another. It represents a set of request parameters. More…Synopsis¶
Methods¶
def
__init__()def
clear()def
__ne__()def
__eq__()def
parameters()def
places()def
setParameters()def
setPlaces()def
setResults()def
swap()
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()orsetResults(). 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
QGeoServiceProviderinstance.See Matching places between managers for an example on how to use a match request.
See also
- PySide6.QtLocation.QPlaceMatchRequest.AlternativeId¶
- __init__()¶
Default constructor. Constructs a new request object.
- __init__(other)
- Parameters:
other –
QPlaceMatchRequest
Constructs a copy of
other.- clear()¶
Clears the match request.
- __ne__(rhs)¶
- Parameters:
rhs –
QPlaceMatchRequest- Return type:
bool
Returns true if
lhsis not equal torhs, otherwise returns false.- __eq__(rhs)¶
- Parameters:
rhs –
QPlaceMatchRequest- Return type:
bool
Returns true if
lhsis equal torhs, 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
Returns a list of places which are to be matched.
See also
- setParameters(parameters)¶
- Parameters:
parameters – Dictionary with keys of type .QString and values of type QVariant.
Sets the
parametersfor matching places.See also
- setPlaces(places)¶
- Parameters:
places – .list of QPlace
Sets a list of
placeswhich are to be matched.See also
- setResults(results)¶
- Parameters:
results – .list of QPlaceSearchResult
Convenience function which uses a set of search
resultsto set the places which should be matched.See also
- swap(other)¶
- Parameters:
other –
QPlaceMatchRequest