Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bracer

macrumors newbie
Original poster
Nov 24, 2009
14
0
I had been reading up on CLLocation in the hope to retrieve some sort of method to retrieve the degree relative to true North from one CLLLocation pointing to another.

I read the properties of course:
Course values are measured in degrees starting at due north and continuing clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on.
I am very confused, how can a single point's "course" be judge since you need two points to make a "course/path' right ?


And the speed property is confusing:
The instantaneous speed of the device in meters per second.

Shouldn't you supply the function with two CLLocations and time stamp to get speed ?
So why is it:
Code:
@property(readonly, NS_NONATOMIC_IPHONEONLY) CLLocationSpeed speed ?
Shouldn't it be something like
Code:
-(NSInteger) Location1:(CLLocation*)point_1 Location2:(CLLocation*)point_2 timeframe:(timestamp *)
?

Can someone please clarify how to use CLLocationSpeed and CLLocationDirection ? Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.