Class TransitionAttributes
Specifies attributes of transitions between two consecutive visits on a
route. Several TransitionAttributes
may apply to the same transition: in
that case, all extra costs add up and the strictest constraint or limit
applies (following natural "AND" semantics).
Implements
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class TransitionAttributes : IMessage<TransitionAttributes>, IEquatable<TransitionAttributes>, IDeepCloneable<TransitionAttributes>, IBufferMessage, IMessage
Constructors
TransitionAttributes()
Declaration
public TransitionAttributes()
TransitionAttributes(TransitionAttributes)
Declaration
public TransitionAttributes(TransitionAttributes other)
Parameters
Type | Name | Description |
---|---|---|
TransitionAttributes | other |
Properties
Cost
Specifies a cost for performing this transition. This is in the same unit as all other costs in the model and must not be negative. It is applied on top of all other existing costs.
Declaration
public double Cost { get; set; }
Property Value
Type | Description |
---|---|
double |
CostPerKilometer
Specifies a cost per kilometer applied to the distance traveled while performing this transition. It adds up to any [Vehicle.cost_per_kilometer][google.maps.routeoptimization.v1.Vehicle.cost_per_kilometer] specified on vehicles.
Declaration
public double CostPerKilometer { get; set; }
Property Value
Type | Description |
---|---|
double |
Delay
Specifies a delay incurred when performing this transition.
This delay always occurs after finishing the source visit and before starting the destination visit.
Declaration
public Duration Delay { get; set; }
Property Value
Type | Description |
---|---|
Duration |
DistanceLimit
Specifies a limit on the distance traveled while performing this transition.
As of 2021/06, only soft limits are supported.
Declaration
public DistanceLimit DistanceLimit { get; set; }
Property Value
Type | Description |
---|---|
DistanceLimit |
DstTag
A destination visit or vehicle end matches iff its
[VisitRequest.tags][google.maps.routeoptimization.v1.Shipment.VisitRequest.tags]
or [Vehicle.end_tags][google.maps.routeoptimization.v1.Vehicle.end_tags]
either contains dst_tag
or does not contain excluded_dst_tag
(depending
on which of these two fields is non-empty).
Declaration
public string DstTag { get; set; }
Property Value
Type | Description |
---|---|
string |
ExcludedDstTag
See dst_tag
. Exactly one of dst_tag
and excluded_dst_tag
must be
non-empty.
Declaration
public string ExcludedDstTag { get; set; }
Property Value
Type | Description |
---|---|
string |
ExcludedSrcTag
See src_tag
. Exactly one of src_tag
and excluded_src_tag
must be
non-empty.
Declaration
public string ExcludedSrcTag { get; set; }
Property Value
Type | Description |
---|---|
string |
SrcTag
Tags defining the set of (src->dst) transitions these attributes apply to.
A source visit or vehicle start matches iff its
[VisitRequest.tags][google.maps.routeoptimization.v1.Shipment.VisitRequest.tags]
or
[Vehicle.start_tags][google.maps.routeoptimization.v1.Vehicle.start_tags]
either contains src_tag
or does not contain excluded_src_tag
(depending
on which of these two fields is non-empty).
Declaration
public string SrcTag { get; set; }
Property Value
Type | Description |
---|---|
string |