Heading
public struct Heading : Equatable
The azimuth (orientation) of the user’s device, relative to true or magnetic north.
-
The heading direction (measured in degrees) relative to true or magnetic north.
When heading is created from CLHeading, this value resolves to
trueHeading
(priority, if valid) ormagneticHeading
.Declaration
Swift
public var direction: CLLocationDirection
-
The maximum deviation (measured in degrees) between the reported heading and the true geomagnetic heading.
Declaration
Swift
public var accuracy: CLLocationDirection
-
The time at which this heading was determined.
Declaration
Swift
public var timestamp: Date
-
Creates a heading.
Declaration
Swift
public init(direction: CLLocationDirection, accuracy: CLLocationDirection, timestamp: Date = Date())
-
Creates a heading from CLHeading.
Declaration
Swift
public init(from clHeading: CLHeading)