CLLocation(Steerpath)
@interface CLLocation (Steerpath)
Category providing convenience methods for accessing Steerpath specific properties
-
Rougly corresponds to Apple’s ‘CLFloor’ level information. Ground floor is equal to 0. Below ground floors are negative integers and above ground floors are positive integers.
This category was made because as of November 4th 2016 Apple does not provide a public API for changing CLLocation floor information.
Declaration
Objective-C
- (int)floorIndex;
Swift
func floorIndex() -> Int32
-
Calculates a course (bearing) in degrees to another location.
Declaration
Objective-C
- (double)courseToLocation:(nonnull CLLocation *)otherLocation;
Swift
func course(to otherLocation: CLLocation) -> Double
Parameters
otherLocation
end point for course
Return Value
course in degrees