create

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

Creates an instance of RangeCalculator.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

context

Android context.

apiKey

API key.

apiUri

Custom URL to be used to execute Routing API call. Upto and including the "calculateReachableRange" endpoint, and with type "Uri". For example: Uri.parse("https://api.tomtom.com/routing/1/calculateReachableRange"). When not specified, a default URL will be used, whose value might depend on other configuration parameters.