EVRoutingService
public protocol EVRoutingService
Important
This is a Public Preview API. It may be changed or removed at any time.-
The Long Distance EV Routing service calculates a route between a given origin and destination. The route contains charging stops that have been added automatically based on the vehicle’s consumption and charging model.
Declaration
Swift
func calculateEvRoute(options: EVRoutingOptions, completion: @escaping (Result<RoutingResponse, Error>) -> ())
Parameters
options
The
EvRoutingOptions
objects.completion
The completion closure ise called after the response to the request has been processed. If no errors have occurred,
RoutingResponse
contains array of routes between an origin and a destination. -
Cancels all current requests.
Declaration
Swift
func cancelPendingRequests()