TTRoute Class Reference

Inherits from NSObject
Declared in TTRoute.h

Overview

TomTom Route API main object. Contains methods to use Tomtom’s online route engine and provides support for both async and sync calls.

– planRouteWithQuery:completionHandler:

Route with async block

- (void)planRouteWithQuery:(TTRouteQuery *_Nonnull)query completionHandler:(void ( ^ _Nonnull ) ( TTRouteResult *_Nullable result , TTResponseError *_Nullable error ))completionHandler

Parameters

query

Object containing the data needed to perform a route query.

completionHandler

CompletionHandler that informs the subscriber when a route result is available. It contains a TTRouteResult object.

Discussion

Route with async block

Declared In

TTRoute.h

– planRouteWithQuery:

Route with async callback

- (void)planRouteWithQuery:(TTRouteQuery *_Nonnull)query

Parameters

query

Object containing the data needed to perform a route query.

Discussion

Route with async callback

Declared In

TTRoute.h

– cancel

Cancels the current routing request

- (void)cancel

Discussion

Cancels the current routing request

Declared In

TTRoute.h