Show / Hide Table of Contents

Class RouteLegTravelAdvisory

Contains the additional information that the user should be informed about on a leg step, such as possible traffic zone restrictions.

Inheritance
object
RouteLegTravelAdvisory
Implements
IMessage<RouteLegTravelAdvisory>
IEquatable<RouteLegTravelAdvisory>
IDeepCloneable<RouteLegTravelAdvisory>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
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 detailing traffic density. Applicable in case of TRAFFIC_AWARE and TRAFFIC_AWARE_OPTIMAL routing preferences. 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. 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 this field does not exist, then there is no toll on the RouteLeg.

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