sdk-traffic / com.tomtom.online.sdk.traffic.flow.query / FlowSegmentDataQueryBuilder

FlowSegmentDataQueryBuilder

class FlowSegmentDataQueryBuilder : IFlowSegmentDataQuery

The default builder for FlowSegmentDataQuery objects.

Constructors

<init>

FlowSegmentDataQueryBuilder(style: FlowSegmentStyle, zoomLevel: Int, position: LatLng)

The default builder for FlowSegmentDataQuery objects.

Functions

build

fun build(): FlowSegmentDataQuery

Creates new instance of FlowSegmentDataQuery.

withIncludeOpenLR

fun withIncludeOpenLR(includeOpenLR: Boolean): FlowSegmentDataQueryBuilder

Defines if the Response should include OpenLR code.

withSpeedUnit

fun withSpeedUnit(speedUnit: FlowSegmentSpeedUnit): FlowSegmentDataQueryBuilder

The representation of Speed units. All values regarding speed in the Response will be recalculated to this unit.

withThickness

fun withThickness(thickness: Int): FlowSegmentDataQueryBuilder

Thickness segment width multiplier.

Companion Object Functions

create

fun create(style: FlowSegmentStyle, zoomLevel: Int, position: LatLng): FlowSegmentDataQueryBuilder

Builder used to create an instance of FlowSegmentDataQuery, once constructed, the user cannot change the field values.