create
Creates an online instance of RangeCalculator.
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.
** Usage example: **
val context: Context = ...
val apiKey: String = "YOUR API KEY"
val rangeCalculator = OnlineRangeCalculatorFactory.create(context, apiKey)
Content copied to clipboard