OfflineRangeCalculator
public final class OfflineRangeCalculator : RangeCalculator
This offline service calculates the area that can be reached from the origin point.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new
OfflineRangeCalculatorinstance with the given parameters.Important
This is a Public Preview API. It may be changed or removed at any time.Parameters
storeAn
NDSStoreproviding access to the offline map.trafficServiceProvider of Traffic Events to be taken into account in range calculation.
-
Defines the error cases that can occur while calculating range.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum RangeError : Error -
Calculates the area that can be reached from the origin point.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func calculateRange( options: TomTomSDKRangeCalculator.RangeCalculationOptions, completion: @escaping (Result<TomTomSDKRangeCalculator.Range, Error>) -> () )Parameters
optionsThe
RangeCalculationOptionsobject.completionThe completion closure is called after the response to the request has been processed. If no errors have occurred,
ReachableRangeResponsecontains the range polygons and the precise polygon center (the result of map-matching the origin point). -
Cancels all current requests.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func cancelPendingRequests()
TomTom SDK for iOS (0.40.0)
OfflineRangeCalculator