Re: CLLocationDistance contents?
Re: CLLocationDistance contents?
- Subject: Re: CLLocationDistance contents?
- From: David Duncan <email@hidden>
- Date: Thu, 18 Dec 2008 16:42:49 -0800
On Dec 18, 2008, at 4:14 PM, Jacob Rhoden wrote:
Hi Guys, I am doing the following to find a distance between two
locations:
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? I cant find any examples in the developer
centre thingy.
From the documentation of -getDistanceFrom:
"Returns the distance (in meters) from the receiver’s coordinate to
the coordinate of the specified location."
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden