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.
  • Declaration

    Swift

    func calculateRange(
        options: RangeCalculationOptions,
        completion: @escaping (
            Result<Range, Error>
        ) -> ()
    )

    Parameters

    options
    completion

    The completion closure is called after the response to the request has been processed. If no errors have occurred, RangeResponse contains a polygon boundary in counterclockwise orientation and the precise polygon center (the result of map-matching the origin point).

  • Cancels all current requests.

    Declaration

    Swift

    func cancelPendingRequests()