# Google Maps Route Optimization V1 Client - Class Type (0.6.2)

0.6.2 (latest) 0.6.1 0.5.1 0.4.1 0.3.3 0.2.0 0.1.0 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 \\ Objective

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### PBDEFAULT

    Value: 0

A 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: 11

Minimize the total working time, summed over all vehicles.

Generated from protobuf enum `MIN_WORKING_TIME = 11;`

### MIN_TRAVEL_TIME

    Value: 12

Same as above but focusing on travel time only.

Generated from protobuf enum `MIN_TRAVEL_TIME = 12;`

### MIN_NUM_VEHICLES

    Value: 13

Minimize the number of vehicles used.

Generated from protobuf enum `MIN_NUM_VEHICLES = 13;`