• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CLLocationDistance contents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CLLocationDistance contents?


  • Subject: Re: CLLocationDistance contents?
  • From: Roland King <email@hidden>
  • Date: Fri, 19 Dec 2008 11:06:55 +0800

try searching for 'Full-Text'.

But the documentation is correct either way. A CLLocationDistance itself isn't necessarily in meters, it's just a double. The functions which return it, like getDistanceFrom: and the altitude property tell you what it means and tells you that it's in meters.

check the function documentation as well as the type info.

On Dec 19, 2008, at 10:22 AM, Jacob Rhoden wrote:


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 (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

_______________________________________________

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


  • Follow-Ups:
    • Re: CLLocationDistance contents?
      • From: "Michael Ash" <email@hidden>
References: 
 >CLLocationDistance contents? (From: Jacob Rhoden <email@hidden>)
 >Re: CLLocationDistance contents? (From: David Duncan <email@hidden>)
 >Re: CLLocationDistance contents? (From: Jacob Rhoden <email@hidden>)

  • Prev by Date: Re: CLLocationDistance contents?
  • Next by Date: Re: Performance of calculation on float point numbers in a array • NSNumber in NSArray, or classic C array?
  • Previous by thread: Re: CLLocationDistance contents?
  • Next by thread: Re: CLLocationDistance contents?
  • Index(es):
    • Date
    • Thread