Job

@Serializable
data class Job(val id: Int, val service: Int? = null, val delivery: Amount? = null, val pickup: Amount? = null, val amount: Amount? = null, val location: LonLat? = null, val locationIndex: Int? = null, val allowedVehicles: List<Int>? = null, val disallowedVehicles: List<Int>? = null, val skills: Skills? = null, val priority: Int? = null, val timeWindows: List<TimeWindow>? = null)

Constructors

Link copied to clipboard
constructor(id: Int, service: Int? = null, delivery: Amount? = null, pickup: Amount? = null, amount: Amount? = null, location: LonLat? = null, locationIndex: Int? = null, allowedVehicles: List<Int>? = null, disallowedVehicles: List<Int>? = null, skills: Skills? = null, priority: Int? = null, timeWindows: List<TimeWindow>? = null)

Properties

Link copied to clipboard
@SerialName(value = "allowed_vehicles")
val allowedVehicles: List<Int>? = null

Allowed vehicles list (restrict which vehicles may handle this job)

Link copied to clipboard
val amount: Amount? = null
Link copied to clipboard
val delivery: Amount? = null

Demand to be delivered/picked as a quantity vector (optional)

Link copied to clipboard
@SerialName(value = "disallowed_vehicles")
val disallowedVehicles: List<Int>? = null

Disallowed vehicles list

Link copied to clipboard
val id: Int

Unique job id (required)

Link copied to clipboard
val location: LonLat? = null

Location as coordinates or index into the matrix, provide one of them

Link copied to clipboard
@SerialName(value = "location_index")
val locationIndex: Int? = null
Link copied to clipboard
val pickup: Amount? = null
Link copied to clipboard
val priority: Int? = null

0..100 (higher = more important)

Link copied to clipboard
val service: Int? = null

Service time in seconds spent on site (optional)

Link copied to clipboard
val skills: Skills? = null

Skills required for this job

Link copied to clipboard
@SerialName(value = "time_windows")
val timeWindows: List<TimeWindow>? = null

Multiple time windows supported