Location

@objc
public class Location : NSObject

Undocumented

  • The orientation of the user’s device. The default value is nil if the device heading cannot be accessed.

    Declaration

    Swift

    public let heading: CLHeading?
  • A CLLocationCoordinate2D that 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 nil if Location.heading is nil. 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 Location object.

    Declaration

    Swift

    public init(with location: CLLocation, heading: CLHeading? = nil)