OnRoute migration from v1 to v2

In v1 we had a distinction between fleet and orders. In v2 we have resources and jobs. The options are
also slightly different.

  • list of locations: deprecated
  • fleet -> resources
  • orders -> jobs
  • options

Fleet

Now called resources

  • startlocation -> start is now a Location object
  • endlocation -> end is now a Location object
  • shiftstart deprecated for resource.shifts
  • shiftend deprecated for resource.shifts
  • type deprecated for tags (array of strings)
  • unavailable deprecated for resource.shifts
  • workingTime -> shifts
    • day deprecated
    • date deprecated
    • vehicle.shiftstart deprecated for shift.from (date-time)
    • vehicle.shiftend deprecated for shift.to (date-time)
      • startlocation -> start Location object
      • endlocation -> end Location object
  • region is now a Location object instead of string

Orders

Now called jobs

  • location -> location is now a Location object instead of string
  • departure_location deprecated
  • type deprecated in favor of tags
  • duration_squash -> durationSquash
  • dateWindows -> renamed to windows
    • startTime (integer) + start (date) deprecated to start (isodatetime)
    • endTime (integer) + end (date) deprecated to end (isodatetime)
  • allowedVehicles -> allowedResources
  • disallowedVehicles -> disallowedResources
  • preferredVehicle -> preferredResource but also achievable with Tags
  • softTypes deprecated in favor of tags

Options

  • overconstrained -> partialPlanning
  • allow_overtime --> allowOvertime
  • minimize_vehicle_use -> minimizeResources
  • force_type_constraint -> deprecated in favor of job.type
  • ignore_travel_time_to_first_job -> deprecated in favor of resource.workingTime.ignoreTravelTimeFromFirstJob
  • ignore_travel_time_to_last_job -> deprecated in favor of resource.workingTime.ignoreTravelTimeFromLastJob
  • max_service_time -> maxServiceTime
  • max_time_for_duration_Squash -> maxTimeForDurationSquash
  • max_waiting_time_for_linkedOrders -> deprecated
  • capacitySpread -> deprecated in favor of fairWorkload. we don't allow for fair travel time.
  • minimize_driver_wait_time -> deprecated
  • vehicle_setup_cost deprecated
  • workloadSpread renames to fairWorkload
  • workloadVehicleSpread renames to fairWorkloadPerResource
  • use_snapUnit_for_waitRange -> useSnapUnitForWaitRange

What’s Next

Check out the schemas: