OnlineRangeCalculator

Default TomTom implementation of the entry point to perform range calculation action based on TomTom's Routing APIs.

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun calculateRange(rangeCalculationOptions: RangeCalculationOptions): Result<Range, RoutingFailure>

Synchronously calculates a range using the provided RangeCalculationOptions.

open override fun calculateRange(rangeCalculationOptions: RangeCalculationOptions, callback: Callback<Range, RoutingFailure>): Cancellable

Asynchronously calculates a range using the provided RangeCalculationOptions object. If the operation succeeds, Callback.onSuccess is called for the callback with a Range. Otherwise, Callback.onFailure is called with a RoutingFailure.

Link copied to clipboard
open override fun close()

Cancels all pending requests and releases all resources used by this instance. After disposing, the result of calling any of the other methods is undefined.