GLRouteManeuver


@interface GLRouteManeuver : NSObject

Class that holding data for the route manuver

  • Initializes custom maneuver

    Declaration

    Objective-C

    - (instancetype)initWithType:(GLManeuverType)type
                            time:(double)time
                         streets:(NSArray *)streets
                  preInstruction:(NSString *)preInstruction
           transitionInstruction:(NSString *)transitionInstruction
                 postInstruction:(NSString *)postInstruction
                          points:(GLMapPoint *)points
                  numberOfPoints:(NSUInteger)numberOfPoints
                previousManeuver:(GLRouteManeuver *)previousManeuver;

    Parameters

    type

    type of maneuver

    streets

    street names that are consistent along the entire maneuver.

    preInstruction

    Text suitable for use as a verbal message immediately prior to the maneuver transition.

    transitionInstruction

    Text suitable for use as a verbal alert in a navigation application.

    postInstruction

    Text suitable for use as a verbal message immediately after the maneuver transition.

    points

    points of maneuver

    numberOfPoints

    number of points

    previousManeuver

    previous maneuver

  • Declaration

    Objective-C

    @property (readonly, atomic) GLManeuverType type;
  • Start point of the maneuver

    Declaration

    Objective-C

    @property (readonly, atomic) GLMapPoint startPoint;
  • End point of the maneuver

    Declaration

    Objective-C

    @property (readonly, atomic) GLMapPoint endPoint;
  • Number of points in maneuver track.

    Declaration

    Objective-C

    @property (readonly, atomic) NSUInteger countOfPoints;
  • First point equals to startPoint. Last point equals to endPoint

    Declaration

    Objective-C

    - (GLMapPoint)pointAtIndex:(NSUInteger)index;

    Parameters

    index

    index of point to return

    Return Value

    point of maneuver track at givenIndex

  • List of street names that are consistent along the entire maneuver.

    Declaration

    Objective-C

    @property (readonly, atomic) NSArray<NSString *> *streetNames;
  • Text suitable for use as a verbal message immediately after the maneuver transition. For example Continue on U.S. 2 22 for 3.9 miles.

    Declaration

    Objective-C

    @property (readonly, atomic) NSString *verbalPostTransitionInstruction;
  • Text suitable for use as a verbal message immediately prior to the maneuver transition. For example Turn right onto North Prince Street, U.S. 2 22.

    Declaration

    Objective-C

    @property (readonly, atomic) NSString *verbalPreTransitionInstruction;
  • 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: Turn right onto North Prince Street.

    Declaration

    Objective-C

    @property (readonly, atomic) NSString *verbalTransitionInstruction;
  • Maneuver length in meters

    Declaration

    Objective-C

    @property (readonly, atomic) double length;
  • Estimated time along the maneuver in seconds.

    Declaration

    Objective-C

    @property (readonly, atomic) double time;