RangeCalculator
public protocol RangeCalculator
This service calculates a set of locations that can be reached from the origin point, subject to the available fuel or energy budget
that is specified in the RangeCalculationOptions
.
Important
This is a Public Preview API. It may be changed or removed at any time.Calculates range for provided options.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
func calculateRange(
options: RangeCalculationOptions,
completion: @escaping (
Result<Range, Error>
) -> ()
)
Parameters
options
|
The |
completion
|
The completion closure is called after the response to the request has been processed.
If no errors have occurred, |
Cancels all current requests.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
func cancelPendingRequests()