Detailed Description
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).
Member Function Documentation
QLandmarkProximityFilter::QLandmarkProximityFilter ( const QGeoCoordinate & center = QGeoCoordinate(), qreal radius = -1 )
Creates a filter that will select landmarks within a given radius around a center coordinate.
QLandmarkProximityFilter::QLandmarkProximityFilter ( const QGeoBoundingCircle & circle )
Creates a filter that will select landmarks withiin a given bounding circle.
QLandmarkProximityFilter::QLandmarkProximityFilter ( const QLandmarkFilter & other )
Constructs a copy of other if possible, otherwise constructs a new proximity filter.
QLandmarkProximityFilter::~QLandmarkProximityFilter () [virtual]
Destroys the filter.
QGeoBoundingCircle QLandmarkProximityFilter::boundingCircle ()
Sets the bounding circle for the proximity filter.
See also setBoundingCircle().
QGeoCoordinate QLandmarkProximityFilter::center () const
Returns the center coordinate of the filter.
See also setCenter().
qreal QLandmarkProximityFilter::radius () const
Returns the radius of the filter. The unit of the radius is meters.
See also setRadius().
void QLandmarkProximityFilter::setBoundingCircle ( const QGeoBoundingCircle & circle )
Sets the bounding circle for the proximity filter
See also boundingCircle().
void QLandmarkProximityFilter::setCenter ( const QGeoCoordinate & center )
Sets the center coordinate of the filter.
See also center().
void QLandmarkProximityFilter::setRadius ( qreal radius )
Sets the radius of the filter. The unit of the radius is meters.
See also radius().