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
ReachableRangeOptions
.Declaration
Swift
func reachableRangeRoute( options: ReachableRangeOptions, completion: @escaping (Result<ReachableRangeResponse, Error>) -> () )
Parameters
query
The
ReachableRangeOptions
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()