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:
Shouldn't it be something like
?
Can someone please clarify how to use CLLocationSpeed and CLLocationDirection ? Thanks.
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 ?
Code:
-(NSInteger) Location1:(CLLocation*)point_1 Location2:(CLLocation*)point_2 timeframe:(timestamp *)
Can someone please clarify how to use CLLocationSpeed and CLLocationDirection ? Thanks.