calculateRange
abstract fun calculateRange(rangeCalculationOptions: RangeCalculationOptions): Result<Range, RoutingFailure>
Synchronously calculates a range using the provided RangeCalculationOptions.
Return
A Range if the call succeeds, a RoutingFailure if it fails.
Parameters
rangeCalculationOptions
Determines origin, budget, and other parameters.
abstract 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.
Return
A cancellable operation.
Parameters
rangeCalculationOptions
Determines origin, budget, and other parameters.
callback
The Callback invoked when the operation has finished, either successfully or with an error. The callback will be executed in the main thread.