TTTrafficFlow Class Reference

Inherits from NSObject
Declared in TTTrafficFlow.h

Overview

TomTom Traffic Flow API main object. Contains methods to use Tomtom’s online traffic flow engine and provides support for both async and sync calls.

  delegate

Delegate that informs the subscriber when a traffic flow result is available. It contains a TrafficFlowDelegate object.

@property id<TrafficFlowDelegate> _Nullable delegate

Discussion

Delegate that informs the subscriber when a traffic flow result is available. It contains a TrafficFlowDelegate object.

Declared In

TTTrafficFlow.h

– flowSegmentDataWithQuery:

FlowSegmentDataWithQuery with async callback

- (void)flowSegmentDataWithQuery:(TTFlowSegmentDataQuery *_Nonnull)query

Parameters

query

Object containing the data needed to perform a traffic flow.

Discussion

FlowSegmentDataWithQuery with async callback

Declared In

TTTrafficFlow.h

– flowSegmentDataWithQuery:completionHandler:

FlowSegmentDataWithQuery with async block

- (void)flowSegmentDataWithQuery:(TTFlowSegmentDataQuery *_Nonnull)query completionHandler:(void ( ^ _Nonnull ) ( TTFlowSegmentDataResponse *_Nullable response , TTResponseError *_Nullable error ))completionHandler

Parameters

query

Object containing the data needed to perform a traffic flow.

completionHandler

CompletionHandler that informs the subscriber when a traffic flow result is available. It contains a TTFlowSegmentDataResponse object.

Discussion

FlowSegmentDataWithQuery with async block

Declared In

TTTrafficFlow.h

– cancel

Cancels the current search request.

- (void)cancel

Discussion

Cancels the current search request.

Declared In

TTTrafficFlow.h