CLLocation* venueLocation = [[CLLocation alloc] initWithLatitude: venue.latitude longitude:venue.longditude]; CLLocationDistance distance = [venueLocation getDistanceFrom:currentLocation];

Is distance in metres/miles/km? How do I display it on screen in a platform independent way?
On 19/12/08 11:42 AM, David Duncan wrote:
From the documentation of -getDistanceFrom:
"Returns the distance (in meters) from the receiver’s coordinate to the coordinate of the specified location."

Thanks Duncan! Why do people always seem to be able to find stuff in the documentation. When I "Option + Mouse double click" on "CLLocationDistance" Xcode only shows me this!

    CLLocationDistance
    A distance measurement from an existing location.

    typedef double CLLocationDistance;
    Availability
    Available in iPhone OS 2.0 and later.
    Declared In
    CLLocation.h

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to