GLRouteManeuver

Objective-C


@interface GLRouteManeuver : NSObject

Swift

class GLRouteManeuver : NSObject

GLRouteManeuver is a class that holds data for a route maneuver, providing information about the maneuver type, route mode, start and end points, and more.

  • Declaration

    Objective-C

    @property (readonly) GLManeuverType type;

    Swift

    var type: GLManeuverType { get }
  • Route mode of this maneuver

    Declaration

    Objective-C

    @property (readonly) GLRouteMode routeMode;

    Swift

    var routeMode: GLRouteMode { get }
  • Start point of the maneuver

    Declaration

    Objective-C

    @property (readonly) GLMapPoint startPoint;

    Swift

    var startPoint: GLMapPoint { get }
  • End point of the maneuver

    Declaration

    Objective-C

    @property (readonly) GLMapPoint endPoint;

    Swift

    var endPoint: GLMapPoint { get }
  • Index of maneuver

    Declaration

    Objective-C

    @property (readonly) NSUInteger index;

    Swift

    var index: UInt { get }
  • Number of points in maneuver track.

    Declaration

    Objective-C

    @property (readonly) NSUInteger countOfPoints;

    Swift

    var countOfPoints: UInt { get }
  • The spoke to exit roundabout after entering. UINT32_MAX if not set.

    Declaration

    Objective-C

    @property (readonly) NSUInteger roundaboutExitCount;

    Swift

    var roundaboutExitCount: UInt { get }
  • First point equals to startPoint. Last point equals to endPoint

    Declaration

    Objective-C

    - (GLMapPoint)pointAtIndex:(NSUInteger)index;

    Swift

    func point(at index: UInt) -> GLMapPoint

    Parameters

    index

    index of point to return

    Return Value

    point of maneuver track at givenIndex

  • Short instruction for UI. For example “Exit 3A → AZ 202 Loop East”

    Declaration

    Objective-C

    @property (readonly) NSString *_Nullable shortInstruction;

    Swift

    var shortInstruction: String? { get }
  • Text for use in UI. For example “Take exit 3A onto AZ 202 Loop East.”.

    Declaration

    Objective-C

    @property (readonly) NSString *_Nullable transitionInstruction;

    Swift

    var transitionInstruction: String? { get }
  • Text suitable for use as a verbal message immediately after the maneuver transition. For example “Continue for 1 kilometer.”.

    Declaration

    Objective-C

    @property (readonly) NSString *_Nullable verbalPostTransitionInstruction;

    Swift

    var verbalPostTransitionInstruction: String? { get }
  • Text suitable for use as a verbal message immediately prior to the maneuver transition. For example “Take exit 3A onto Arizona 2 o2 Loop East.”.

    Declaration

    Objective-C

    @property (readonly) NSString *_Nullable verbalPreTransitionInstruction;

    Swift

    var verbalPreTransitionInstruction: String? { get }
  • Text suitable for use as a verbal alert in a navigation application. The transition alert instruction will prepare the user for the forthcoming transition. For example: “Take exit 3A.”.

    Declaration

    Objective-C

    @property (readonly) NSString *_Nullable verbalTransitionInstruction;

    Swift

    var verbalTransitionInstruction: String? { get }
  • Maneuver length in meters

    Declaration

    Objective-C

    @property (readonly) double length;

    Swift

    var length: Double { get }
  • Estimated time along the maneuver in seconds.

    Declaration

    Objective-C

    @property (readonly) double time;

    Swift

    var time: Double { get }