MQRouteLeg

@interface MQRouteLeg : NSObject

An object that describes the specific segment of a route to a single destination

  • An object that holds a list of coordinates that represent the route leg

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) MQShape *shape;

    Swift

    var shape: MQShape { get }
  • Features include speed limits

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) MQFeatures *features;

    Swift

    var features: MQFeatures { get }
  • A list of maneuvers in the route leg

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) NSArray<MQManeuver *> *maneuvers;

    Swift

    var maneuvers: [MQManeuver] { get }
  • Id of the route leg

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) NSString *routeLegId;

    Swift

    var routeLegId: String { get }
  • Lenth of the route in meters

    Declaration

    Objective-C

    @property (readonly, atomic) CLLocationDistance length;

    Swift

    var length: CLLocationDistance { get }
  • A list of prompts

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) NSArray<MQPrompt *> *prompts;

    Swift

    var prompts: [MQPrompt] { get }
  • Traffic congestion information on the route leg

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) MQTraffic *traffic;

    Swift

    var traffic: MQTraffic { get }
  • A list of navigation instructions. This is an amalgamation of prompts and maneuvers that can be easily shown as a list of instructions for navigation

    Declaration

    Objective-C

    @property (readonly, atomic, nonnull) NSArray<MQInstruction *> *instructions;

    Swift

    var instructions: [MQInstruction] { get }