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 for executing Routing API calls. Must include the "calculateReachableRange" endpoint name. 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.