RangeCalculationOptions
public struct RangeCalculationOptions
Options for range calculation.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init ( origin: ItineraryPoint, budgets: Set<Budget>, costModel: CostModel? = nil, departAt: Date? = nil, routeToInclude: [CLLocationCoordinate2D]? = nil, vehicle: Vehicle? = Car(), queryOptions: QueryOptions? = nil ) throwsParameters
originThe starting location of the range.
budgetsBudgets that limit the range. All budgets must be of the same type.
costModelOptions governing which paths to prefer.
departAtA departure time for the route.
routeToIncludeA polyline that must be fully included in the range.
vehicleThe vehicle dimensions, restrictions and engine parameters.
queryOptionsOptions regarding the way the request is sent to the server.
-
The starting location of the range.
Declaration
Swift
public let origin: ItineraryPoint -
Budgets that limit the range. All budgets must be of the same type.
Declaration
Swift
public let budgets: Set<Budget> -
Options governing which paths to prefer.
Declaration
Swift
public let costModel: CostModel? -
A departure time for the route.
Declaration
Swift
public let departAt: Date? -
A polyline that must be fully included in the range.
Declaration
Swift
public let routeToInclude: [CLLocationCoordinate2D]? -
The vehicle dimensions, restrictions and engine parameters.
Declaration
Swift
public let vehicle: Vehicle? -
Options regarding the way the request is sent to the server.
Declaration
Swift
public let queryOptions: QueryOptions?
-
Copies the current RangeCalculationOptions with changes specified in build closure
Declaration
Swift
public func copy(build: (inout Builder) throws -> ()) throws -> RangeCalculationOptionsParameters
buildThis closure allows for change of RangeCalculationOptions values
Return Value
RangeCalculationOptions with the changes set on the closure
-
The
Buildercreates a new instance ofRangeCalculationOptionswith modified fields.Declaration
Swift
public struct Builder
RangeCalculationOptions Structure Reference