The QLandmarkProximityFilter class is used to search for landmarks based on the radius around a given coordinate and perform sorting by distance. More...
#include <QLandmarkProximityFilter>
Inherits QLandmarkFilter.
QLandmarkProximityFilter ( const QGeoCoordinate & center = QGeoCoordinate(), qreal radius = -1 ) | |
QLandmarkProximityFilter ( const QGeoBoundingCircle & circle ) | |
QLandmarkProximityFilter ( const QLandmarkFilter & other ) | |
virtual | ~QLandmarkProximityFilter () |
QGeoBoundingCircle | boundingCircle () |
QGeoCoordinate | center () const |
qreal | radius () const |
void | setBoundingCircle ( const QGeoBoundingCircle & circle ) |
void | setCenter ( const QGeoCoordinate & center ) |
void | setRadius ( qreal radius ) |
The QLandmarkProximityFilter class is used to search for landmarks based on the radius around a given coordinate and perform sorting by distance.
In order to be a valid filter, the region covered by the proximity filter must not cover one of the poles. The landmarks are returned in ascending order of distance. A proximity filter may be used inside an intersection filter to sort landmarks by distance in combination with other criteria such as categories. (Note that a using sort order other than QLandmarkSortOrder (i.e. no sort) will override the sorting by distance).
Creates a filter that will select landmarks within a given radius around a center coordinate.
Creates a filter that will select landmarks withiin a given bounding circle.
Constructs a copy of other if possible, otherwise constructs a new proximity filter.
Destroys the filter.
Sets the bounding circle for the proximity filter.
See also setBoundingCircle().
Returns the center coordinate of the filter.
See also setCenter().
Returns the radius of the filter. The unit of the radius is meters.
See also setRadius().
Sets the bounding circle for the proximity filter
See also boundingCircle().
Sets the center coordinate of the filter.
See also center().
Sets the radius of the filter. The unit of the radius is meters.
See also radius().