RoutePlanningOptions

class RoutePlanningOptions(val itinerary: Itinerary, val costModel: CostModel? = CostModel(), val departAt: Date? = null, val arriveAt: Date? = null, val alternativeRoutesOptions: AlternativeRoutesOptions? = null, val guidanceOptions: GuidanceOptions? = null, val routeLegOptions: List<RouteLegOptions> = emptyList(), val vehicle: Vehicle = Vehicle.Car(), val chargingOptions: ChargingOptions? = null, val queryOptions: QueryOptions? = null, val waypointOptimization: WaypointOptimization? = null, val mode: RouteInformationMode = RouteInformationMode.Complete, val arrivalSidePreference: ArrivalSidePreference = ArrivalSidePreference.AnySide)

Options for planning routes, which are passed to one of the various route planners.

Note: The parameters departAt and arriveAt are not yet supported with the Orbis map.

Parameters

itinerary

The list of route locations.

costModel

Options governing which streets to prefer.

departAt

A departure time for the route.

arriveAt

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

alternativeRoutesOptions

Options for calculating more than one route.

guidanceOptions

Properties for the generated instructions. Specify null for no instructions generation.

routeLegOptions

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

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

Specifies whether to optimize the order of waypoints, and if so, how.

mode

Specifies how much guidance information (instructions and lane guidance) is returned with the route. Defaults to RouteInformationMode.Complete.

arrivalSidePreference

Specifies the road side on arrival preference for waypoints and destination.

Throws

if an invalid combination of options is used, such as specifying both departAt and arriveAt, or using chargingOptions with a non-electric vehicle.

Constructors

Link copied to clipboard
constructor(itinerary: Itinerary, costModel: CostModel? = CostModel(), departAt: Date? = null, arriveAt: Date? = null, alternativeRoutesOptions: AlternativeRoutesOptions? = null, guidanceOptions: GuidanceOptions? = null, routeLegOptions: List<RouteLegOptions> = emptyList(), vehicle: Vehicle = Vehicle.Car(), chargingOptions: ChargingOptions? = null, queryOptions: QueryOptions? = null, waypointOptimization: WaypointOptimization? = null, mode: RouteInformationMode = RouteInformationMode.Complete, arrivalSidePreference: ArrivalSidePreference = ArrivalSidePreference.AnySide)

Properties

Link copied to clipboard

Check whether path alternatives were requested for this route planning.

Link copied to clipboard
val arriveAt: Date? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val departAt: Date? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
operator fun component1(): Itinerary
Link copied to clipboard
operator fun component10(): QueryOptions?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun component2(): CostModel?
Link copied to clipboard
operator fun component3(): Date?
Link copied to clipboard
operator fun component4(): Date?
Link copied to clipboard
Link copied to clipboard
operator fun component6(): GuidanceOptions?
Link copied to clipboard
Link copied to clipboard
operator fun component8(): Vehicle
Link copied to clipboard
operator fun component9(): ChargingOptions?
Link copied to clipboard
fun copy(itinerary: Itinerary = this.itinerary, costModel: CostModel? = this.costModel, departAt: Date? = this.departAt, arriveAt: Date? = this.arriveAt, alternativeRoutesOptions: AlternativeRoutesOptions? = this.alternativeRoutesOptions, guidanceOptions: GuidanceOptions? = this.guidanceOptions, routeLegOptions: List<RouteLegOptions> = this.routeLegOptions, vehicle: Vehicle = this.vehicle, chargingOptions: ChargingOptions? = this.chargingOptions, queryOptions: QueryOptions? = this.queryOptions, waypointOptimization: WaypointOptimization? = this.waypointOptimization, mode: RouteInformationMode = this.mode, arrivalSidePreference: ArrivalSidePreference = this.arrivalSidePreference): RoutePlanningOptions
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String