create
Deprecated
This will be removed 12 months after the next release.
Replace with
TomTomSdk.createRoutePlanner()Content copied to clipboard
Creates an instance of RoutePlanner.
Parameters
context
Android context.
apiKey
API key.
apiUri
Custom URL to be used to execute Routing API call. Without the endpoint, and with type "Uri". For example Uri.parse("https://api.tomtom.com/routing/1"). The URL must support the "calculateRoute" and "calculateLongDistanceEVRoute" endpoints. When not specified, a default URL will be used, whose value might depend on other configuration parameters.