TTBatchRoute

Objective-C

@interface TTBatchRoute

Swift

class TTBatchRoute

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

  • DEPRECATED

    • This method is deprecated. Use the ‘initWithKey’ method to init with Key.
    • The planned withdrawal date is 15.06.2021.

    Initializer with info.plist Key.

    Declaration

    Objective-C

    - (instancetype _Nonnull)init;

    Swift

    init()
  • Initializer with key for the TomTom API Service.

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithKey:(NSString *_Nonnull)key;

    Swift

    init(key: String)
  • Register delegate to receive callbacks with a result or error response.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<TTBatchRouteResponseDelegate> _Nullable delegate;

    Swift

    weak var delegate: TTBatchRouteResponseDelegate? { get set }
  • Route with async callback

    Declaration

    Objective-C

    - (void)batchRouteWithQuery:(TTBatchRouteQuery *_Nonnull)query;

    Swift

    func batchRoute(with query: TTBatchRouteQuery)

    Parameters

    query

    Object containing the data needed to perform a route query.