RangeCalculationOptions

public struct RangeCalculationOptions

Options for range calculation.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Declaration

    Swift

    public init
        (
            origin: ItineraryPoint,
            budgets: Set<Budget>,
            costModel: CostModel? = nil,
            departAt: Date? = nil,
            routeToInclude: [CLLocationCoordinate2D]? = nil,
            vehicle: Vehicle? = Car(),
            queryOptions: QueryOptions? = nil
        ) throws

    Parameters

    origin

    The starting location of the range.

    budgets

    Budgets that limit the range. All budgets must be of the same type.

    costModel

    Options governing which paths to prefer.

    departAt

    A departure time for the route.

    routeToInclude

    A polyline that must be fully included in the range.

    vehicle

    The vehicle dimensions, restrictions and engine parameters.

    queryOptions

    Options regarding the way the request is sent to the server.

Public

  • The starting location of the range.

    Declaration

    Swift

    public var origin: ItineraryPoint
  • Budgets that limit the range. All budgets must be of the same type.

    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 polyline that must be fully included in the range.

    Declaration

    Swift

    public var routeToInclude: [CLLocationCoordinate2D]?
  • The vehicle dimensions, restrictions and engine parameters.

    Declaration

    Swift

    public var vehicle: Vehicle?
  • Options regarding the way the request is sent to the server.

    Declaration

    Swift

    public var queryOptions: QueryOptions?