create

fun create(context: Context, apiKey: String, apiUri: Uri? = null): RoutePlanner

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.