RangeCalculator
Entry point to perform a range calculation, that is, determining the boundary of the area reachable from an initial vehicle position given some budget such as limited energy.
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Link copied to clipboard
abstract fun calculateRange(rangeCalculationOptions: RangeCalculationOptions): Result<RangeCalculationResult, RangeCalculationFailure>
Synchronously calculates a range using the provided RangeCalculationOptions.
abstract 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.