Load
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-08 UTC.
[null,null,["Last updated 2024-04-08 UTC."],[[["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."]]],[]]