Class RouteTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions.
Implements
Namespace: Google.Maps.Routing.V2
Assembly: Google.Maps.Routing.V2.dll
Syntax
public sealed class RouteTravelAdvisory : IMessage<RouteTravelAdvisory>, IEquatable<RouteTravelAdvisory>, IDeepCloneable<RouteTravelAdvisory>, IBufferMessage, IMessage
Constructors
RouteTravelAdvisory()
Declaration
public RouteTravelAdvisory()
RouteTravelAdvisory(RouteTravelAdvisory)
Declaration
public RouteTravelAdvisory(RouteTravelAdvisory other)
Parameters
| Type | Name | Description |
|---|---|---|
| RouteTravelAdvisory | other |
Properties
FuelConsumptionMicroliters
The predicted fuel consumption in microliters.
Declaration
public long FuelConsumptionMicroliters { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
RouteRestrictionsPartiallyIgnored
Returned route may have restrictions that are not suitable for requested travel mode or route modifiers.
Declaration
public bool RouteRestrictionsPartiallyIgnored { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
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 route 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 route. This field is only populated
if tolls are expected on the route. If this field is set, but the
estimatedPrice subfield is not populated, then the route contains tolls,
but the estimated price is unknown. If this field is not set, then there
are no tolls expected on the route.
Declaration
public TollInfo TollInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| TollInfo |
TransitFare
If present, contains the total fare or ticket costs on this route
This property is only returned for TRANSIT requests and only
for routes where fare information is available for all transit steps.
Declaration
public Money TransitFare { get; set; }
Property Value
| Type | Description |
|---|---|
| Money |