GLRouteManeuver
@interface GLRouteManeuver : NSObject
Class that holding data for the route manuver
-
Type of the maneuver see https://github.com/valhalla/valhalla-docs/blob/master/api-reference.md for details
Declaration
Objective-C
@property (atomic, readonly) GLManeuverType type;
-
Start point of the maneuver
Declaration
Objective-C
@property (atomic, readonly) GLMapPoint startPoint;
-
End point of the maneuver
Declaration
Objective-C
@property (atomic, readonly) GLMapPoint endPoint;
-
Number of points in maneuver track.
Declaration
Objective-C
@property (atomic, readonly) 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 (atomic, readonly) NSArray<NSString *> *_Nullable 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 (atomic, readonly) NSString *_Nullable 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 (atomic, readonly) NSString *_Nullable 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 (atomic, readonly) NSString *_Nullable verbalTransitionInstruction;
-
Maneuver length in meters
Declaration
Objective-C
@property (atomic, readonly) double length;
-
Estimated time along the maneuver in seconds.
Declaration
Objective-C
@property (atomic, readonly) double time;