RangeCalculationOptions
public struct RangeCalculationOptions
Options for range calculation.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new
RangeCalculationOptionsinstance.Throws
RoutingOptionsErrorif any of the parameters violates its requirements.Declaration
Swift
public init ( origin: ItineraryPoint, budgets: Set<Budget>, vehicle: any Vehicle = Car(), costModel: CostModel? = nil, departAt: Date? = nil, routeToInclude: Route? = nil, queryOptions: QueryOptions? = nil ) throwsParameters
originThe starting location of the range.
budgetsBudgets that limit the range. Only one budget is currently supported.
vehicleThe vehicle to be used. Only
Motorizedvehicles are supported. If the budget isBudget.fuelorBudget.energy, the vehicle’s consumption must be set accordingly.costModelOptions governing which paths to prefer.
departAtA departure time for the route.
routeToIncludeA route that, up to its reachable offset, should be contained in the range.
queryOptionsOptions regarding the way the request is sent to the server.
-
The starting location of the range.
Declaration
Swift
public var origin: ItineraryPoint -
Budgets that limit the range. Only one budget is currently supported.
Declaration
Swift
public var budgets: Set<Budget> -
Options governing which paths to prefer.
Declaration
Swift
public var costModel: CostModel? -
A departure time for the route.
Declaration
Swift
public var departAt: Date? -
A route that, up to its reachable offset, should be contained in the range.
Declaration
Swift
public var routeToInclude: Route? -
Options regarding the way the request is sent to the server.
Declaration
Swift
public var queryOptions: QueryOptions?
TomTom SDK for iOS (0.49.0)
RangeCalculationOptions