MQLocationObservation

@interface MQLocationObservation : NSObject

Information about position on the route

  • This is the raw GPS location received from Location Manager

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) CLLocation *rawGPSLocation;

    Swift

    var rawGPSLocation: CLLocation { get }
  • This is the snapped location on the route

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) CLLocation *snappedLocation;

    Swift

    var snappedLocation: CLLocation { get }
  • This is the closest position on the route to user’s location

    Declaration

    Objective-C

    @property (readonly, atomic) MQNavigationRoutePosition snappedPosition;

    Swift

    var snappedPosition: MQNavigationRoutePosition { get }
  • This is the current leg user is on

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) MQRouteLeg *currentLeg;

    Swift

    var currentLeg: MQRouteLeg { get }
  • This is the distance in meters from user’s current location to position on route

    Declaration

    Objective-C

    @property (readonly, atomic)
        CLLocationDistance distanceFromRawLocationToSnappedLocation;

    Swift

    var distanceFromRawLocationToSnappedLocation: CLLocationDistance { get }
  • How far away in meters is the user from upcoming maneuver

    Declaration

    Objective-C

    @property (readonly, atomic) CLLocationDistance distanceToUpcomingManeuver;

    Swift

    var distanceToUpcomingManeuver: CLLocationDistance { get }
  • Distance in meters between snappedPosition and destination position of current leg

    Declaration

    Objective-C

    @property (readonly, atomic) CLLocationDistance remainingLegDistance;

    Swift

    var remainingLegDistance: CLLocationDistance { get }
  • If the user is off route or not

    Declaration

    Objective-C

    @property (readonly, atomic) BOOL isOffRoute;

    Swift

    var isOffRoute: Bool { get }