RoutePlanningOptions

public struct RoutePlanningOptions : RoutingOptionsWithItinerary

Options for route planning.

Lifecycle

  • Important

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

    Declaration

    Swift

    public init
        (
            itinerary: Itinerary,
            costModel: CostModel? = nil,
            alternativeRoutesOptions: AlternativeRoutesOptions? = nil,
            routeLegOptions: [RouteLegOptions] = [],
            guidanceOptions: GuidanceOptions? = nil,
            departAt: Date? = nil,
            arriveAt: Date? = nil,
            vehicle: Vehicle = Car(),
            chargingOptions: ChargingOptions? = nil,
            queryOptions: QueryOptions? = nil,
            waypointOptimization: WaypointOptimization? = nil,
            mode: RouteInformationMode = .complete
        ) throws

    Parameters

    itinerary

    The list of route locations.

    costModel

    Options governing which paths to prefer.

    alternativeRoutesOptions

    Options for calculating more than one route.

    routeLegOptions

    Options for each route leg, such as a polyline to follow.

    guidanceOptions

    Properties for the generated instructions.

    departAt

    A departure time for the route. Cannot be used together with arriveAt.

    arriveAt

    An arrival time for the route. Cannot be used together with departAt.

    vehicle

    The vehicle dimensions, restrictions and engine parameters.

    chargingOptions

    Additional options for electric vehicles to take charging into account.

    queryOptions

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

    waypointOptimization

    Defines how to optimize the order of waypoints.

    mode

    Defines how much guidance information (instructions and land guidance) is returned with the route.

Public

  • The list of route locations.

    Declaration

    Swift

    public var itinerary: Itinerary
  • Options governing which paths to prefer.

    Declaration

    Swift

    public var costModel: CostModel?
  • Options for calculating more than one route.

    Declaration

    Swift

    public var alternativeRoutesOptions: AlternativeRoutesOptions?
  • Options for each route leg, such as a polyline to follow.

    Declaration

    Swift

    public var routeLegOptions: [RouteLegOptions]
  • Properties for the generated instructions.

    Important

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

    Declaration

    Swift

    public var guidanceOptions: GuidanceOptions?
  • A departure time for the route. Cannot be used together with arriveAt.

    Declaration

    Swift

    public var departAt: Date?
  • An arrival time for the route. Cannot be used together with departAt.

    Declaration

    Swift

    public var arriveAt: Date?
  • The vehicle dimensions, restrictions and engine parameters.

    Important

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

    Declaration

    Swift

    public var vehicle: Vehicle
  • Additional options for electric vehicles to take charging into account.

    Important

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

    Declaration

    Swift

    public var chargingOptions: ChargingOptions?
  • Options regarding the way the request is sent to the server.

    Declaration

    Swift

    public var queryOptions: QueryOptions?
  • The way of optimizing the order of waypoints

    Declaration

    Swift

    public var waypointOptimization: WaypointOptimization?
  • Defines how much guidance information (instructions and lane guidance) is returned with the route.

    Important

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

    Declaration

    Swift

    public var mode: RouteInformationMode