TTLongDistanceEV
Objective-C
@interface TTLongDistanceEV
Swift
class TTLongDistanceEV
Public Preview
This is under Public Preview and subject to change by the end of 2020.12.
More information is available at: https://developer.tomtom.com/public-preview
Entry point for Long Distance EV Routing.
-
Initializer with key for the TomTom API Service.
Declaration
Objective-C
- (instancetype _Nonnull)initWithKey:(NSString *_Nonnull)key;Swift
init(key: String) -
Route with async block
Declaration
Objective-C
- (void)planRouteWithQuery:(TTLongDistanceEVRoutingQuery *_Nonnull)query completionHandler: (void (^_Nonnull)(TTLongDistanceEvResponse *_Nullable, int *_Nullable))completionHandler;Swift
func planRoute(with query: TTLongDistanceEVRoutingQuery, completionHandler: @escaping (TTLongDistanceEvResponse?, UnsafeMutablePointer<Int32>?) -> Void)Parameters
queryObject containing the data needed to perform a route query.
completionHandlerCompletionHandler that informs the subscriber when a route result is available.
-
Route with async callback
Declaration
Objective-C
- (void)planRouteWithQuery:(TTLongDistanceEVRoutingQuery *_Nonnull)query;Swift
func planRoute(with query: TTLongDistanceEVRoutingQuery)Parameters
queryObject containing the data needed to perform a route query.
TTLongDistanceEV Class Reference