GLRouteBuilder
@interface GLRouteBuilder : NSObject
Class to construct custom routes
-
Default initializer
Declaration
Objective-C
- (nonnull instancetype)init;Return Value
Returns new instance
-
Sets language of maneuvers
Declaration
Objective-C
- (void)setLanguage:(nonnull NSString *)language;Parameters
languagelanguage of maneuvers
-
Adds target point
Declaration
Objective-C
- (void)addTargetPoint:(GLRoutePoint)point;Parameters
pointtarget point to add
-
Adds new maneuver
Declaration
Objective-C
- (void)addManeuver:(GLManeuverType)type points:(nonnull const GLMapPoint *)points heights:(const float *_Nullable)heights numberOfPoints:(uint32_t)numberOfPoints;Parameters
typetype of maneuver
pointspoints of maneuver
heightsoptional heights in points
numberOfPointsnumber of points and heights
-
Sets time of previously added maneuver
Declaration
Objective-C
- (void)setManeuverTime:(double)maneuverTime;Parameters
maneuverTimetime to set
-
Sets street names for prveiously added maneuver
Declaration
Objective-C
- (void)setManeuverStreets:(nonnull NSArray<NSString *> *)maneuverStreets;Parameters
maneuverStreetsstreet names that are consistent along the entire maneuver.
-
Sets maneuver instuction for prveiously added maneuver
Declaration
Objective-C
- (void)setManeuverPreInstruction:(nonnull NSString *)preInstruction;Parameters
preInstructionText suitable for use as a verbal message immediately prior to the maneuver transition.
-
Sets maneuver instuction for prveiously added maneuver
Declaration
Objective-C
- (void)setManeuverTransitionInstruction: (nonnull NSString *)transitionInstruction;Parameters
transitionInstructionText suitable for use as a verbal alert in a navigation application.
-
Sets maneuver instuction for prveiously added maneuver
Declaration
Objective-C
- (void)setManeuverPostInstruction:(nonnull NSString *)postInstruction;Parameters
postInstructionText suitable for use as a verbal message immediately after the maneuver transition.
-
Validates and creates route
Declaration
Objective-C
- (nonnull GLRoute *)build;Return Value
custom route
Install in Dash
GLRouteBuilder Class Reference