Reference documentation and code samples for the Google Maps Route Optimization V1 Client class LoadLimit.
Defines a load limit applying to a vehicle, e.g. "this truck may only carry up to 3500 kg". See load_limits .
Generated from protobuf message google.maps.routeoptimization.v1.Vehicle.LoadLimit
Namespace
Google \ Maps \ RouteOptimization \ V1 \ VehicleMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ max_load
int|string
The maximum acceptable amount of load.
↳ soft_max_load
↳ cost_per_unit_above_soft_max
float
If the load ever exceeds soft_max_load along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - soft_max_load ) * * cost_per_unit_above_soft_max . All costs add up and must be in the same unit as Shipment.penalty_cost . Soft limits may only be defined on types that apply to either pickups only or deliveries only throughout the model.
↳ start_load_interval
↳ end_load_interval
↳ cost_per_kilometer
LoadLimit\LoadCost
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.
↳ cost_per_traveled_hour
LoadLimit\LoadCost
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.
getMaxLoad
The maximum acceptable amount of load.
int|string
hasMaxLoad
clearMaxLoad
setMaxLoad
The maximum acceptable amount of load.
var
int|string
$this
getSoftMaxLoad
A soft limit of the load. See cost_per_unit_above_soft_max .
int|string
setSoftMaxLoad
A soft limit of the load. See cost_per_unit_above_soft_max .
var
int|string
$this
getCostPerUnitAboveSoftMax
If the load ever exceeds soft_max_load along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - soft_max_load )
- cost_per_unit_above_soft_max . All costs add up and must be in the same unit as Shipment.penalty_cost .
Soft limits may only be defined on types that apply to either pickups only or deliveries only throughout the model.
float
setCostPerUnitAboveSoftMax
If the load ever exceeds soft_max_load along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - soft_max_load )
- cost_per_unit_above_soft_max . All costs add up and must be in the same unit as Shipment.penalty_cost .
Soft limits may only be defined on types that apply to either pickups only or deliveries only throughout the model.
var
float
$this
getStartLoadInterval
The acceptable load interval of the vehicle at the start of the route.
hasStartLoadInterval
clearStartLoadInterval
setStartLoadInterval
The acceptable load interval of the vehicle at the start of the route.
$this
getEndLoadInterval
The acceptable load interval of the vehicle at the end of the route.
hasEndLoadInterval
clearEndLoadInterval
setEndLoadInterval
The acceptable load interval of the vehicle at the end of the route.
$this
getCostPerKilometer
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.
hasCostPerKilometer
clearCostPerKilometer
setCostPerKilometer
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.
$this
getCostPerTraveledHour
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.
hasCostPerTraveledHour
clearCostPerTraveledHour
setCostPerTraveledHour
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.
$this

