Cloud Optimization v1 API - Class ShipmentRoute.Types.TravelStep (2.2.0)

[Obsolete]
public sealed class ShipmentRoute.Types.TravelStep : IMessage<ShipmentRoute.Types.TravelStep>, IEquatable<ShipmentRoute.Types.TravelStep>, IDeepCloneable<ShipmentRoute.Types.TravelStep>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Optimization v1 API class ShipmentRoute.Types.TravelStep.

Deprecated: Use [ShipmentRoute.Transition][google.cloud.optimization.v1.ShipmentRoute.Transition] instead. Travel between each visit along the route: from the vehicle's start_location to the first visit's arrival_location, then from the first visit's departure_location to the second visit's arrival_location, and so on until the vehicle's end_location. This accounts only for the actual travel between visits, not counting the waiting time, the time spent performing a visit, nor the distance covered during a visit.

Invariant: travel_steps_size() == visits_size() + 1.

If the vehicle does not have a start_ and/or end_location, the corresponding travel metrics are 0 and/or empty.

Inheritance

object > ShipmentRoute.Types.TravelStep

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

TravelStep()

public TravelStep()

TravelStep(TravelStep)

public TravelStep(ShipmentRoute.Types.TravelStep other)
Parameter
NameDescription
otherShipmentRouteTypesTravelStep

Properties

DistanceMeters

public double DistanceMeters { get; set; }

Distance traveled during the step.

Property Value
TypeDescription
double

Duration

public Duration Duration { get; set; }

Duration of the travel step.

Property Value
TypeDescription
Duration

RoutePolyline

public ShipmentRoute.Types.EncodedPolyline RoutePolyline { get; set; }

The encoded polyline representation of the route followed during the step.

This field is only populated if [OptimizeToursRequest.populate_travel_step_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines] is set to true.

Property Value
TypeDescription
ShipmentRouteTypesEncodedPolyline

TrafficInfoUnavailable

public bool TrafficInfoUnavailable { get; set; }

When traffic is requested via [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic], and the traffic info couldn't be retrieved for a TravelStep, this boolean is set to true. This may be temporary (rare hiccup in the realtime traffic servers) or permanent (no data for this location).

Property Value
TypeDescription
bool