TTRouteQueryBuilder
@class TTRouteQueryBuilder;
Class TTRouteQueryBuilder builds a query, using parameters.
-
Declaration
Objective-C
+ (TTRouteQueryBuilder *_Nonnull) createWithDest:(CLLocationCoordinate2D)destPosition andOrig:(CLLocationCoordinate2D)origPosition;Swift
class func create(withDest destPosition: CLLocationCoordinate2D, andOrig origPosition: CLLocationCoordinate2D) -> TTRouteQueryBuilderParameters
destPositionThe map coordinate whose geographical information your destination position.
origPositionThe map coordinate whose geographical information your start position.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withInstructionsType: (TTOptionInstructionsType)instructionsType;Swift
func withInstructionsType(_ instructionsType: TTOptionInstructionsType) -> TTRouteQueryBuilderParameters
instructionsTypeGuidance instructions will be returned
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withLanguage:(id)language;Swift
func withLanguage(_ language: Any!) -> TTRouteQueryBuilderParameters
languageThe language parameter determines the language of the guidance messages.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withArriveAt:(NSDate *_Nonnull)arriveAt;Swift
func withArriveAt(_ arriveAt: Date) -> TTRouteQueryBuilderParameters
arriveAtThe date and time of arrival at the destination point.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withMaxAlternatives: (NSUInteger)maxAlternatives;Swift
func withMaxAlternatives(_ maxAlternatives: UInt) -> TTRouteQueryBuilderParameters
maxAlternativesNumber of desired alternative routes to be calculated.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withComputeBestOrder:(BOOL)isComputeBestOrder;Swift
func withComputeBestOrder(_ isComputeBestOrder: Bool) -> TTRouteQueryBuilderParameters
isComputeBestOrderThe maximum allowed number of waypoints is 50, reduced to 20
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withRouteRepresentation: (NSString *_Nonnull)routeRepresentation;Swift
func withRouteRepresentation(_ routeRepresentation: String) -> TTRouteQueryBuilderParameters
routeRepresentationSpecifies the representation of the set of routes provided as response.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withComputeTravelTimeFor: (NSString *_Nonnull)computeTravelTimeFor;Swift
func withComputeTravelTime(for computeTravelTimeFor: String) -> TTRouteQueryBuilderParameters
computeTravelTimeForSpecifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withVehicleHeading:(NSUInteger)vehicleHeading;Swift
func withVehicleHeading(_ vehicleHeading: UInt) -> TTRouteQueryBuilderParameters
vehicleHeadingThe directional heading of the vehicle in degrees starting at true North and continuing in clockwise direction.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withMinDeviationDistance: (NSUInteger)minDeviationDistance;Swift
func withMinDeviationDistance(_ minDeviationDistance: UInt) -> TTRouteQueryBuilderParameters
minDeviationDistanceAll alternative routes returned will follow the reference route from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withMinDeviationTime: (NSUInteger)minDeviationTime;Swift
func withMinDeviationTime(_ minDeviationTime: UInt) -> TTRouteQueryBuilderParameters
minDeviationTimeAll alternative routes returned will follow the reference route from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withSectionType:(TTSectionType)sectionType;Swift
func withSectionType(_ sectionType: TTSectionType) -> TTRouteQueryBuilderParameters
sectionTypeSpecifies which of the section types is reported in the route response.
Return Value
TTRouteQueryBuilder
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull)withSupportingPoints: (NSMutableArray<NSValue *> *_Nonnull)supportingPoints;Swift
func withSupportingPoints(_ supportingPoints: NSMutableArray) -> TTRouteQueryBuilderParameters
supportingPointsA list of base route points to be used as input for route reconstruction.
Return Value
TTRouteQueryBuilder @deprecated This method is deprecated, use withSupportingPoints:count instead.
-
Declaration
Objective-C
- (TTRouteQueryBuilder *_Nonnull) withSupportingPoints:(CLLocationCoordinate2D *_Nonnull)supportingPoints count:(NSUInteger)count;Swift
func withSupportingPoints(_ supportingPoints: UnsafeMutablePointer<CLLocationCoordinate2D>, count: UInt) -> TTRouteQueryBuilderParameters
supportingPointsA list of base route points to be used as input for route reconstruction.
Return Value
TTRouteQueryBuilder
-
Return Value
TTRouteQuery
TTRouteQueryBuilder Class Reference