Class RouteLegTravelAdvisory
Contains the additional information that the user should be informed about on a leg step, such as possible traffic zone restrictions.
Implements
Namespace: Google.Maps.Routing.V2
Assembly: Google.Maps.Routing.V2.dll
Syntax
public sealed class RouteLegTravelAdvisory : IMessage<RouteLegTravelAdvisory>, IEquatable<RouteLegTravelAdvisory>, IDeepCloneable<RouteLegTravelAdvisory>, IBufferMessage, IMessage
Constructors
RouteLegTravelAdvisory()
Declaration
public RouteLegTravelAdvisory()
RouteLegTravelAdvisory(RouteLegTravelAdvisory)
Declaration
public RouteLegTravelAdvisory(RouteLegTravelAdvisory other)
Parameters
| Type | Name | Description |
|---|---|---|
| RouteLegTravelAdvisory | other |
Properties
SpeedReadingIntervals
Speed reading intervals indicating traffic density. This field is only
populated for requests when the request has a TRAFFIC_AWARE or
TRAFFIC_AWARE_OPTIMAL
[ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference]
value, and TRAFFIC_ON_POLYLINE is included in the
[ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
The intervals cover the entire polyline of the RouteLeg without overlap.
The start point of a specified interval is the same as the end point of the
preceding interval.
Example:
polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).
Declaration
public RepeatedField<SpeedReadingInterval> SpeedReadingIntervals { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<SpeedReadingInterval> |
TollInfo
Contains information about tolls on the specific RouteLeg.
This field is only populated if we expect there are tolls on the
RouteLeg and TOLLS is included in the request's
[ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
If this field is set but the estimated_price subfield is not
populated, we expect that road contains tolls but we do not know an
estimated price. If toll_info does not exist, then there is no toll on
the RouteLeg.
Declaration
public TollInfo TollInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| TollInfo |