iOS Reference Library Apple Developer
Search

Deprecated CLLocation Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 3.2

getDistanceFrom:

Returns the distance (in meters) from the receiver’s location to the specified location. (Deprecated in iOS 3.2. Use the distanceFromLocation: method instead.)

- (CLLocationDistance)getDistanceFrom:(const CLLocation *)location

Parameters
location

The other location.

Return Value

The distance (in meters) between the two locations.

Discussion

This method measures the distance between the two locations by tracing a line between them that follows the curvature of the Earth. The resulting arc is a smooth curve and does not take into account specific altitude changes between the two locations.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 3.2.
Declared In
CLLocation.h



Last updated: 2010-05-11

Did this document help you? Yes It's good, but... Not helpful...