-
The orientation of the user’s device. The default value is
nilif the device heading cannot be accessed.Declaration
Swift
public let heading: CLHeading? -
A
CLLocationCoordinate2Dthat represents a physical location.Declaration
Swift
public var coordinate: CLLocationCoordinate2D { get } -
The direction that the device is moving in degrees true North.
Declaration
Swift
public var course: CLLocationDirection { get } -
The horizontal accuracy of a location.
Declaration
Swift
public var horizontalAccuracy: CLLocationAccuracy { get } -
The optional heading direction. Returns
nilifLocation.headingisnil. If the heading relative to true north can be determined, that value will be used. Otherwise, magnetic north will be used.Declaration
Swift
public var headingDirection: CLLocationDirection? { get } -
Initialize a
Locationobject.Declaration
Swift
public init(with location: CLLocation, heading: CLHeading? = nil)
Location Class Reference