ReachableRangeRoutingService
public protocol ReachableRangeRoutingService
Important
This is a Public Preview API. It may be changed or removed at any time.-
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
.Declaration
Swift
func calculateRange( options: RangeCalculationOptions, completion: @escaping ( RangeCalculationOptions, Result<ReachableRange, Error> ) -> () )
Parameters
options
The
RangeCalculationOptions
objects.completion
The completion closure is called after the response to the request has been processed. If no errors have occurred,
ReachableRangeResponse
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()