Load

  • The Shipment.Load message defines the amount added or subtracted from a vehicle's load during a pickup or delivery.

  • This amount is represented by the amount field in the JSON representation, which is a string formatted as an int64.

  • The amount value must be non-negative and users should choose an appropriate unit to maintain precision.

  • Refer to loadDemands for how this message is used within the broader context of route optimization.

When performing a visit, a predefined amount may be added to the vehicle load if it's a pickup, or subtracted if it's a delivery. This message defines such amount. See loadDemands.

JSON representation
{
  "amount": string
}
Fields
amount

string (int64 format)

The amount by which the load of the vehicle performing the corresponding visit will vary. Since it is an integer, users are advised to choose an appropriate unit to avoid loss of precision. Must be ≥ 0.