@Generated
public interface RouteTravelAdvisoryOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
long |
getFuelConsumptionMicroliters()
The predicted fuel consumption in microliters.
|
boolean |
getRouteRestrictionsPartiallyIgnored()
Returned route may have restrictions that are not suitable for requested
travel mode or route modifiers.
|
SpeedReadingInterval |
getSpeedReadingIntervals(int index)
Speed reading intervals indicating traffic density.
|
int |
getSpeedReadingIntervalsCount()
Speed reading intervals indicating traffic density.
|
List<SpeedReadingInterval> |
getSpeedReadingIntervalsList()
Speed reading intervals indicating traffic density.
|
SpeedReadingIntervalOrBuilder |
getSpeedReadingIntervalsOrBuilder(int index)
Speed reading intervals indicating traffic density.
|
List<? extends SpeedReadingIntervalOrBuilder> |
getSpeedReadingIntervalsOrBuilderList()
Speed reading intervals indicating traffic density.
|
TollInfo |
getTollInfo()
Contains information about tolls on the route.
|
TollInfoOrBuilder |
getTollInfoOrBuilder()
Contains information about tolls on the route.
|
com.google.type.Money |
getTransitFare()
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.
|
com.google.type.MoneyOrBuilder |
getTransitFareOrBuilder()
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.
|
boolean |
hasTollInfo()
Contains information about tolls on the route.
|
boolean |
hasTransitFare()
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasTollInfo()
Contains information about tolls on the route. This field is only populated if tolls are expected on the route 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 `estimatedPrice` subfield is not populated, then the route contains tolls, but the estimated price is unknown. If `toll_info` is not set, then there are no tolls expected on the route.
.google.maps.routing.v2.TollInfo toll_info = 2;TollInfo getTollInfo()
Contains information about tolls on the route. This field is only populated if tolls are expected on the route 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 `estimatedPrice` subfield is not populated, then the route contains tolls, but the estimated price is unknown. If `toll_info` is not set, then there are no tolls expected on the route.
.google.maps.routing.v2.TollInfo toll_info = 2;TollInfoOrBuilder getTollInfoOrBuilder()
Contains information about tolls on the route. This field is only populated if tolls are expected on the route 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 `estimatedPrice` subfield is not populated, then the route contains tolls, but the estimated price is unknown. If `toll_info` is not set, then there are no tolls expected on the route.
.google.maps.routing.v2.TollInfo toll_info = 2;List<SpeedReadingInterval> getSpeedReadingIntervalsList()
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 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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;SpeedReadingInterval getSpeedReadingIntervals(int index)
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 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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;int getSpeedReadingIntervalsCount()
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 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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;List<? extends SpeedReadingIntervalOrBuilder> getSpeedReadingIntervalsOrBuilderList()
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 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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;SpeedReadingIntervalOrBuilder getSpeedReadingIntervalsOrBuilder(int index)
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 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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;long getFuelConsumptionMicroliters()
The predicted fuel consumption in microliters. This field is only populated when `FUEL_CONSUMPTION` is included in the request's [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
int64 fuel_consumption_microliters = 5;boolean getRouteRestrictionsPartiallyIgnored()
Returned route may have restrictions that are not suitable for requested travel mode or route modifiers.
bool route_restrictions_partially_ignored = 6;boolean hasTransitFare()
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.
.google.type.Money transit_fare = 7;com.google.type.Money getTransitFare()
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.
.google.type.Money transit_fare = 7;com.google.type.MoneyOrBuilder getTransitFareOrBuilder()
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.
.google.type.Money transit_fare = 7;Copyright © 2026 Google LLC. All rights reserved.