Class Vehicle.Types.LoadLimit
Defines a load limit applying to a vehicle, e.g. "this truck may only carry up to 3500 kg". See [load_limits][google.maps.routeoptimization.v1.Vehicle.load_limits].
Implements
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class Vehicle.Types.LoadLimit : IMessage<Vehicle.Types.LoadLimit>, IEquatable<Vehicle.Types.LoadLimit>, IDeepCloneable<Vehicle.Types.LoadLimit>, IBufferMessage, IMessage
Constructors
LoadLimit()
Declaration
public LoadLimit()
LoadLimit(LoadLimit)
Declaration
public LoadLimit(Vehicle.Types.LoadLimit other)
Parameters
Type | Name | Description |
---|---|---|
Vehicle.Types.LoadLimit | other |
Properties
CostPerUnitAboveSoftMax
If the load ever exceeds [soft_max_load][google.maps.routeoptimization.v1.Vehicle.LoadLimit.soft_max_load] along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - [soft_max_load][google.maps.routeoptimization.v1.Vehicle.LoadLimit.soft_max_load])
- [cost_per_unit_above_soft_max][google.maps.routeoptimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max]. All costs add up and must be in the same unit as [Shipment.penalty_cost][google.maps.routeoptimization.v1.Shipment.penalty_cost].
Declaration
public double CostPerUnitAboveSoftMax { get; set; }
Property Value
Type | Description |
---|---|
double |
EndLoadInterval
The acceptable load interval of the vehicle at the end of the route.
Declaration
public Vehicle.Types.LoadLimit.Types.Interval EndLoadInterval { get; set; }
Property Value
Type | Description |
---|---|
Vehicle.Types.LoadLimit.Types.Interval |
HasMaxLoad
Gets whether the "max_load" field is set
Declaration
public bool HasMaxLoad { get; }
Property Value
Type | Description |
---|---|
bool |
MaxLoad
The maximum acceptable amount of load.
Declaration
public long MaxLoad { get; set; }
Property Value
Type | Description |
---|---|
long |
SoftMaxLoad
A soft limit of the load. See [cost_per_unit_above_soft_max][google.maps.routeoptimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
Declaration
public long SoftMaxLoad { get; set; }
Property Value
Type | Description |
---|---|
long |
StartLoadInterval
The acceptable load interval of the vehicle at the start of the route.
Declaration
public Vehicle.Types.LoadLimit.Types.Interval StartLoadInterval { get; set; }
Property Value
Type | Description |
---|---|
Vehicle.Types.LoadLimit.Types.Interval |