calculateRange

Synchronously calculates a range using the provided RangeCalculationOptions.

Return

If the call succeeds, returns a RangeCalculationResult. If it fails, returns a RangeCalculationFailure.

Parameters

rangeCalculationOptions

Determines origin, budget, and other parameters.


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.

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.