Google Maps Route Optimization V1 Client - Class VehicleLoad (0.2.0)

Reference documentation and code samples for the Google Maps Route Optimization V1 Client class VehicleLoad.

Reports the actual load of the vehicle at some point along the route, for a given type (see Transition.vehicle_loads).

Generated from protobuf message google.maps.routeoptimization.v1.ShipmentRoute.VehicleLoad

Namespace

Google \ Maps \ RouteOptimization \ V1 \ ShipmentRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ amount int|string

The amount of load on the vehicle, for the given type. The unit of load is usually indicated by the type. See Transition.vehicle_loads.

getAmount

The amount of load on the vehicle, for the given type. The unit of load is usually indicated by the type. See Transition.vehicle_loads.

Returns
Type Description
int|string

setAmount

The amount of load on the vehicle, for the given type. The unit of load is usually indicated by the type. See Transition.vehicle_loads.

Parameter
Name Description
var int|string
Returns
Type Description
$this