Vehicle

@Serializable
data class Vehicle(val id: Int, val profile: String, val capacity: Amount? = null, val start: LonLat? = null, val end: LonLat? = null, val startIndex: Int? = null, val endIndex: Int? = null, val skills: Skills? = null, val timeWindow: TimeWindow? = null, val breaks: List<VehicleBreak>? = null, val earliestStart: Int? = null, val latestEnd: Int? = null, val maxTasks: Int? = null, val maxTravelTime: Int? = null, val description: String? = null)

Constructors

Link copied to clipboard
constructor(id: Int, profile: String, capacity: Amount? = null, start: LonLat? = null, end: LonLat? = null, startIndex: Int? = null, endIndex: Int? = null, skills: Skills? = null, timeWindow: TimeWindow? = null, breaks: List<VehicleBreak>? = null, earliestStart: Int? = null, latestEnd: Int? = null, maxTasks: Int? = null, maxTravelTime: Int? = null, description: String? = null)

Properties

Link copied to clipboard
val breaks: List<VehicleBreak>? = null

Optional list of breaks (each with service & time windows)

Link copied to clipboard
val capacity: Amount? = null

Vehicle capacity vector

Link copied to clipboard
val description: String? = null

Optional arbitrary metadata to round-trip through the solver

Link copied to clipboard
@SerialName(value = "earliest_start")
val earliestStart: Int? = null

Earliest/latest start/end (advanced; seconds since midnight)

Link copied to clipboard
val end: LonLat? = null
Link copied to clipboard
@SerialName(value = "end_index")
val endIndex: Int? = null
Link copied to clipboard
val id: Int

Unique vehicle id (required)

Link copied to clipboard
@SerialName(value = "latest_end")
val latestEnd: Int? = null
Link copied to clipboard
@SerialName(value = "max_tasks")
val maxTasks: Int? = null

Max tasks or max travel time limits (seconds)

Link copied to clipboard
@SerialName(value = "max_travel_time")
val maxTravelTime: Int? = null
Link copied to clipboard

Routing profile, e.g., "driving-car" (required)

Link copied to clipboard
val skills: Skills? = null

Skills the vehicle provides

Link copied to clipboard
val start: LonLat? = null

Start/end positions as coordinates or as matrix indices (pick one style)

Link copied to clipboard
@SerialName(value = "start_index")
val startIndex: Int? = null
Link copied to clipboard
@SerialName(value = "time_window")
val timeWindow: TimeWindow? = null

When the vehicle is available to operate