Show / Hide Table of Contents

Class ShipmentRoute.Types.Transition

Transition between two events on the route. See the description of [ShipmentRoute][google.maps.routeoptimization.v1.ShipmentRoute].

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

Inheritance
object
ShipmentRoute.Types.Transition
Implements
IMessage<ShipmentRoute.Types.Transition>
IEquatable<ShipmentRoute.Types.Transition>
IDeepCloneable<ShipmentRoute.Types.Transition>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class ShipmentRoute.Types.Transition : IMessage<ShipmentRoute.Types.Transition>, IEquatable<ShipmentRoute.Types.Transition>, IDeepCloneable<ShipmentRoute.Types.Transition>, IBufferMessage, IMessage

Constructors

Transition()

Declaration
public Transition()

Transition(Transition)

Declaration
public Transition(ShipmentRoute.Types.Transition other)
Parameters
Type Name Description
ShipmentRoute.Types.Transition other

Properties

BreakDuration

Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in [ShipmentRoute.breaks][google.maps.routeoptimization.v1.ShipmentRoute.breaks].

Declaration
public Duration BreakDuration { get; set; }
Property Value
Type Description
Duration

DelayDuration

Sum of the delay durations applied to this transition. If any, the delay starts exactly delay_duration seconds before the next event (visit or vehicle end). See [TransitionAttributes.delay][google.maps.routeoptimization.v1.TransitionAttributes.delay].

Declaration
public Duration DelayDuration { get; set; }
Property Value
Type Description
Duration

RoutePolyline

The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.maps.routeoptimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.

Declaration
public ShipmentRoute.Types.EncodedPolyline RoutePolyline { get; set; }
Property Value
Type Description
ShipmentRoute.Types.EncodedPolyline

RouteToken

Output only. An opaque token that can be passed to Navigation SDK to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when the route was created. Treat this token as an opaque blob. Don't compare its value across requests as its value may change even if the service returns the exact same route. This field is only populated if [populate_transition_polylines] [google.maps.routeoptimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.

Declaration
public string RouteToken { get; set; }
Property Value
Type Description
string

StartTime

Start time of this transition.

Declaration
public Timestamp StartTime { get; set; }
Property Value
Type Description
Timestamp

TotalDuration

Total duration of the transition, provided for convenience. It is equal to:

  • next visit start_time (or vehicle_end_time if this is the last transition) - this transition's start_time;
  • if ShipmentRoute.has_traffic_infeasibilities is false, the following additionally holds: `total_duration = travel_duration + delay_duration
  • break_duration + wait_duration`.
Declaration
public Duration TotalDuration { get; set; }
Property Value
Type Description
Duration

TrafficInfoUnavailable

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

Declaration
public bool TrafficInfoUnavailable { get; set; }
Property Value
Type Description
bool

TravelDistanceMeters

Distance traveled during the transition.

Declaration
public double TravelDistanceMeters { get; set; }
Property Value
Type Description
double

TravelDuration

Travel duration during this transition.

Declaration
public Duration TravelDuration { get; set; }
Property Value
Type Description
Duration

VehicleLoads

Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.maps.routeoptimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.maps.routeoptimization.v1.Shipment.load_demands] on some shipment performed on this route.

The loads during the first transition are the starting loads of the vehicle route. Then, after each visit, the visit's load_demands are either added or subtracted to get the next transition's loads, depending on whether the visit was a pickup or a delivery.

Declaration
public MapField<string, ShipmentRoute.Types.VehicleLoad> VehicleLoads { get; }
Property Value
Type Description
MapField<string, ShipmentRoute.Types.VehicleLoad>

WaitDuration

Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.

Declaration
public Duration WaitDuration { get; set; }
Property Value
Type Description
Duration
In this article
Back to top Generated by DocFX