Show / Hide Table of Contents

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].

Inheritance
object
Vehicle.Types.LoadLimit
Implements
IMessage<Vehicle.Types.LoadLimit>
IEquatable<Vehicle.Types.LoadLimit>
IDeepCloneable<Vehicle.Types.LoadLimit>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
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

CostPerKilometer

Cost of moving one unit of load over one kilometer for this vehicle. This can be used as a proxy for fuel consumption: if the load is a weight (in Newtons), then load*kilometer has the dimension of an energy.

Experimental: See https://developers.google.com/maps/tt/route-optimization/experimental/load-cost/make-request for more details.

Declaration
public Vehicle.Types.LoadLimit.Types.LoadCost CostPerKilometer { get; set; }
Property Value
Type Description
Vehicle.Types.LoadLimit.Types.LoadCost

CostPerTraveledHour

Cost of traveling with a unit of load during one hour for this vehicle.

Experimental: See https://developers.google.com/maps/tt/route-optimization/experimental/load-cost/make-request for more details.

Declaration
public Vehicle.Types.LoadLimit.Types.LoadCost CostPerTraveledHour { get; set; }
Property Value
Type Description
Vehicle.Types.LoadLimit.Types.LoadCost

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]. Soft limits may only be defined on types that apply to either pickups only or deliveries only throughout the model.
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
In this article
Back to top Generated by DocFX