Sorry, you need to enable JavaScript to visit this website.

Documentation

Documentation

Initialization

TTTrafficFlow and TTTrafficIncidents classes encapsulate a connection bridge to TomTom Online Traffic service.

Call the flowSegmentDataWithQuery method to perform a flow segment. The call uses the TTFlowSegmentDataQuery parameter from the TTTrafficFlow class.
Use the builder design pattern to simplify construction of the TTFlowSegmentDataQuery.

The API reference contains a detailed specification of the search objects and options.
It also includes a number of functional examples to illustrate different uses cases.

This works analogically for both traffic services. An example query and corresponding callback for Traffic Incident Details service is as follows:

TTLatLngBounds bounds = TTLatLngBoundsMake(CLLocationCoordinate2DMake(51.544300, -0.176267), CLLocationCoordinate2DMake(51.465582, -0.071777));
TTIncidentDetailsQuery *query = [[TTIncidentDetailsQueryBuilder createWithStyle:TTTrafficIncidentStyleTypeS1 withBoundingBox:bounds withZoom:12 withTrafficModelID:@"-1"] build];

 

You are here