Reference documentation and code samples for the Google Maps Route Optimization V1 Client class Type.
The objective type that will be mapped to a set of costs.
Protobuf type google.maps.routeoptimization.v1.ShipmentModel.Objective.Type
Namespace
Google \ Maps \ RouteOptimization \ V1 \ ShipmentModel \ ObjectiveMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
PBDEFAULT
Value: 0A default set of costs will be used, to ensure a reasonable solution.
Note: this objective can be used on its own, but will also always be added with weight 1.0, as a baseline, to the objectives specified by the user, if it's not already present.
Generated from protobuf enum DEFAULT = 0;
MIN_DISTANCE
Value: 10"MIN" objectives.
Minimize the total distance traveled.
Generated from protobuf enum MIN_DISTANCE = 10;
MIN_WORKING_TIME
Value: 11Minimize the total working time, summed over all vehicles.
Generated from protobuf enum MIN_WORKING_TIME = 11;
MIN_TRAVEL_TIME
Value: 12Same as above but focusing on travel time only.
Generated from protobuf enum MIN_TRAVEL_TIME = 12;
MIN_NUM_VEHICLES
Value: 13Minimize the number of vehicles used.
Generated from protobuf enum MIN_NUM_VEHICLES = 13;