OptimizedRoute

@Serializable
data class OptimizedRoute(val vehicle: Int, val cost: Int, val delivery: List<Int>? = null, val amount: List<Int>? = null, val pickup: List<Int>? = null, val setup: Int, val service: Int, val duration: Int, val waitingTime: Int, val priority: Int, val steps: List<RouteStep> = emptyList(), val violations: List<Violation> = emptyList())

Constructors

Link copied to clipboard
constructor(vehicle: Int, cost: Int, delivery: List<Int>? = null, amount: List<Int>? = null, pickup: List<Int>? = null, setup: Int, service: Int, duration: Int, waitingTime: Int, priority: Int, steps: List<RouteStep> = emptyList(), violations: List<Violation> = emptyList())

Properties

Link copied to clipboard
val amount: List<Int>? = null
Link copied to clipboard
val cost: Int
Link copied to clipboard
val delivery: List<Int>? = null

Per-route totals (optional keys depending on your model)

Link copied to clipboard
Link copied to clipboard
val pickup: List<Int>? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val setup: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "waiting_time")
val waitingTime: Int