Maintain current location in iOS SDK

I just finished an Android app where I used the carrier value of the current location. Now I am trying to make the same application for iOS. But didn't find a way to get your current location in iOS sdk?

I do not look at how to calculate the support between two CLLocationCoordinate2Ds ( Carrier calculation between two CLLocationCoordinate2Ds ).

*** I need to have a current location.

Any help would be great for me.

+7
source share
1 answer

CLLocation has a course property (type CLLocationDirection ), which is a prop. From the docs:

Heading values ​​are measured in degrees, starting in the north and continuing clockwise around the compass. Thus, the north is 0 degrees, the east is 90 degrees, the south is 180 degrees, etc. Course values ​​may not be available on all devices. A negative value indicates that the direction is invalid.

+13
source

All Articles