VROOM.Vehicle (vroom v0.1.2) View Source

Describes what kind of transportation type the driver is using. The default profile is car.

The Vehicle struct has the following properties:

  • profile: routing profile (defaults to car)
  • description: a string describing this vehicle
  • start: coordinates list
  • start_index: index of relevant row and column in custom matrix
  • end: coordinates list
  • end_index: index of relevant row and column in custom matrix
  • capacity: an list of integers describing multidimensional quantities
  • skills: an list of integers defining skills
  • time_window: a time_window struct describing working hours
  • breaks: an list of break structs
  • steps: an list of vehicle_step structs describing a custom route for this vehicle (only makes sense when using -c)

Link to this section Summary

Link to this section Types

Specs

coordinates() :: [float()]

Specs

t() :: %VROOM.Vehicle{
  breaks: [VROOM.Break.t()] | nil,
  capacity: [integer()] | nil,
  description: binary() | nil,
  end: coordinates() | nil,
  end_index: integer() | nil,
  id: integer(),
  profile: binary() | nil,
  skills: [integer()] | nil,
  speed_factor: float(),
  start: coordinates() | nil,
  start_index: integer() | nil,
  steps: [VROOM.Vehicle.Step.t()] | nil,
  time_window: list() | nil
}