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.
Functions
Link copied to clipboard
open override fun calculateRange(rangeCalculationOptions: RangeCalculationOptions): Result<RangeCalculationResult, RangeCalculationFailure>
Synchronously calculates a range using the provided RangeCalculationOptions.
open override fun calculateRange(rangeCalculationOptions: RangeCalculationOptions, callback: Callback<RangeCalculationResult, RangeCalculationFailure>): Cancellable
Asynchronously calculates a range using the provided RangeCalculationOptions object. If the operation succeeds, Callback.onSuccess is called for the callback
with a RangeCalculationResult. Otherwise, Callback.onFailure is called with a RangeCalculationFailure.