RoutePlanningOptions

Options for route planning.

  • The list of route locations.

    Declaration

    Swift

    public var itinerary: Itinerary
  • 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. Instructions will not be generated if the options are not set.

    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.

    Note

    If chargingOptions are provided, must be Bus, Car, Motorcycle or Van.

    Important

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

    Declaration

    Swift

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

    Note

    If provided, the vehicle must be Bus, Car, Motorcycle or Van.

    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.

    Declaration

    Swift

    public var mode: RouteInformationMode
  • Defines the reconstruction mode used for route reconstruction.

    Important

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

    Declaration

    Swift

    public var reconstructionMode: ReconstructionMode?
  • Specifies road side on arrival preference for waypoints and destination.

    Declaration

    Swift

    public var arrivalSidePreference: ArrivalSidePreference
  • Defines general strategy for selecting roads during route calculation.

    Important

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

    Declaration

    Swift

    public private(set) var routeType: RouteType? { get }
  • Defines if live traffic should be used in route calculation.

    Important

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

    Declaration

    Swift

    public private(set) var considerTraffic: ConsiderTraffic? { get }
  • Specifies avoidance criteria.

    Important

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

    Declaration

    Swift

    public private(set) var avoidOptions: AvoidOptions? { get }
  • Options governing which paths to prefer.

    Declaration

    Swift

    public var costModel: CostModel? { get set }