Class ShipmentModel.Types.Objective
Objectives replace the cost model completely, and are therefore incompatible with pre-existing costs. Each objective maps to a number of pre-defined costs for, e.g., vehicles, shipments or transition attributes.
Experimental: See https://developers.google.com/maps/tt/route-optimization/experimental/objectives/make-request for more details.
Implements
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class ShipmentModel.Types.Objective : IMessage<ShipmentModel.Types.Objective>, IEquatable<ShipmentModel.Types.Objective>, IDeepCloneable<ShipmentModel.Types.Objective>, IBufferMessage, IMessage
Constructors
Objective()
Declaration
public Objective()
Objective(Objective)
Declaration
public Objective(ShipmentModel.Types.Objective other)
Parameters
| Type | Name | Description |
|---|---|---|
| ShipmentModel.Types.Objective | other |
Properties
HasType
Gets whether the "type" field is set
Declaration
public bool HasType { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasWeight
Gets whether the "weight" field is set
Declaration
public bool HasWeight { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Type
The type of the objective.
Declaration
public ShipmentModel.Types.Objective.Types.Type Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ShipmentModel.Types.Objective.Types.Type |
Weight
How much this objective should count relatively to the others. This can be any non-negative number, weights do not have to sum to 1. Weights default to 1.0.
Declaration
public double Weight { get; set; }
Property Value
| Type | Description |
|---|---|
| double |