Class

CKLocationSortDescriptor

An object used to sort records containing location data.

Declaration

@interface CKLocationSortDescriptor : NSSortDescriptor

Overview

You can add a location sort descriptor to your queries when searching for records. At creation time, you must provide the sort descriptor with a key whose value is a CLLocation object. The sort descriptor uses the value of that key to perform the sort.

Distances are computed by drawing a direct line between the two locations that follows the curvature of the Earth. Distances do not take into account altitude changes between the two locations.

Topics

Initializing a Location Sort Descriptor

- initWithKey:relativeLocation:

Initializes and returns a location sort descriptor object.

Accessing the Location Value

relativeLocation

The reference location against which records are sorted.

Relationships

Inherits From

Conforms To

See Also

Queries

CKQueryOperation

An operation used to execute queries against a database.

CKQuery

A query that describes the criteria to apply when searching for records in a database.

CKQueryCursor

An object that marks the stopping point for a query and the starting point for retrieving the remaining results.