TTFlowSegmentDataQueryBuilder
@interface TTFlowSegmentDataQueryBuilder : NSObject
TTFlowSegmentDataQueryBuilder
-
Builder of TTFlowSegmentDataQueryBuilder object
Declaration
Objective-C
+ (TTFlowSegmentDataQueryBuilder *_Nonnull) createWithStyle:(TTTrafficStyleType)style withZoom:(NSUInteger)zoom withCoordiante:(CLLocationCoordinate2D)coordiante;
Swift
class func create(with style: TTTrafficStyleType, withZoom zoom: UInt, withCoordiante coordiante: CLLocationCoordinate2D) -> TTFlowSegmentDataQueryBuilder
Parameters
style
The type of flow data to be displayed on the tile.
zoom
Zoom level. This will affect traffic incident coordinates to present both road sides separately.
point
Coordinate of the point close to the road segment. They have to be comma-separated and calculated using EPSG4326 projection.
Return Value
TTFlowSegmentDataQueryBuilder object
-
Part of builder TTFlowSegmentDataQueryBuilder object.
Declaration
Objective-C
- (TTFlowSegmentDataQueryBuilder *_Nonnull)withUnit:(TTTrafficUnitType)unit;
Swift
func withUnit(_ unit: TTTrafficUnitType) -> TTFlowSegmentDataQueryBuilder
Parameters
unit
Unit of speed.
Return Value
TTFlowSegmentDataQueryBuilder
-
Part of builder TTFlowSegmentDataQueryBuilder object.
Declaration
Objective-C
- (TTFlowSegmentDataQueryBuilder *_Nonnull)withThickness: (NSNumber *_Nonnull)thickness;
Swift
func withThickness(_ thickness: NSNumber) -> TTFlowSegmentDataQueryBuilder
Parameters
thickness
Segment width multiplier.
Return Value
TTFlowSegmentDataQueryBuilder
-
Part of builder TTFlowSegmentDataQueryBuilder object.
Declaration
Objective-C
- (TTFlowSegmentDataQueryBuilder *_Nonnull)withOpenLr:(BOOL)openLr;
Swift
func withOpenLr(_ openLr: Bool) -> TTFlowSegmentDataQueryBuilder
Parameters
openLr
Should response include OpenLR code?
Return Value
TTFlowSegmentDataQueryBuilder
-
Specifies HTTP headers for the Request.
Declaration
Objective-C
- (TTFlowSegmentDataQueryBuilder *_Nonnull)withHTTPHeaders:(id)headers;
Swift
func withHTTPHeaders(_ headers: Any!) -> TTFlowSegmentDataQueryBuilder
Parameters
headers
HTTP headers for the Request
Return Value
TTReverseGeocoderQueryBuilder
-
Build method.
Declaration
Objective-C
- (TTFlowSegmentDataQuery *_Nonnull)build;
Swift
func build() -> TTFlowSegmentDataQuery
Return Value
TTFlowSegmentDataQuery object.