Package com.google.maps.routing.v2
Interface RouteTravelAdvisoryOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RouteTravelAdvisory,RouteTravelAdvisory.Builder
public interface RouteTravelAdvisoryOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetFuelConsumptionMicroliters()The predicted fuel consumption in microliters.booleangetRouteRestrictionsPartiallyIgnored()Returned route may have restrictions that are not suitable for requested travel mode or route modifiers.SpeedReadingIntervalgetSpeedReadingIntervals(int index)Speed reading intervals detailing traffic density.intgetSpeedReadingIntervalsCount()Speed reading intervals detailing traffic density.List<SpeedReadingInterval>getSpeedReadingIntervalsList()Speed reading intervals detailing traffic density.SpeedReadingIntervalOrBuildergetSpeedReadingIntervalsOrBuilder(int index)Speed reading intervals detailing traffic density.List<? extends SpeedReadingIntervalOrBuilder>getSpeedReadingIntervalsOrBuilderList()Speed reading intervals detailing traffic density.TollInfogetTollInfo()Contains information about tolls on the route.TollInfoOrBuildergetTollInfoOrBuilder()Contains information about tolls on the route.com.google.type.MoneygetTransitFare()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.MoneyOrBuildergetTransitFareOrBuilder()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.booleanhasTollInfo()Contains information about tolls on the route.booleanhasTransitFare()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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasTollInfo
boolean hasTollInfo()
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.
.google.maps.routing.v2.TollInfo toll_info = 2;- Returns:
- Whether the tollInfo field is set.
-
getTollInfo
TollInfo getTollInfo()
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.
.google.maps.routing.v2.TollInfo toll_info = 2;- Returns:
- The tollInfo.
-
getTollInfoOrBuilder
TollInfoOrBuilder getTollInfoOrBuilder()
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.
.google.maps.routing.v2.TollInfo toll_info = 2;
-
getSpeedReadingIntervalsList
List<SpeedReadingInterval> getSpeedReadingIntervalsList()
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).repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
-
getSpeedReadingIntervals
SpeedReadingInterval getSpeedReadingIntervals(int index)
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).repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
-
getSpeedReadingIntervalsCount
int getSpeedReadingIntervalsCount()
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).repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
-
getSpeedReadingIntervalsOrBuilderList
List<? extends SpeedReadingIntervalOrBuilder> getSpeedReadingIntervalsOrBuilderList()
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).repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
-
getSpeedReadingIntervalsOrBuilder
SpeedReadingIntervalOrBuilder getSpeedReadingIntervalsOrBuilder(int index)
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).repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
-
getFuelConsumptionMicroliters
long getFuelConsumptionMicroliters()
The predicted fuel consumption in microliters.
int64 fuel_consumption_microliters = 5;- Returns:
- The fuelConsumptionMicroliters.
-
getRouteRestrictionsPartiallyIgnored
boolean getRouteRestrictionsPartiallyIgnored()
Returned route may have restrictions that are not suitable for requested travel mode or route modifiers.
bool route_restrictions_partially_ignored = 6;- Returns:
- The routeRestrictionsPartiallyIgnored.
-
hasTransitFare
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;- Returns:
- Whether the transitFare field is set.
-
getTransitFare
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;- Returns:
- The transitFare.
-
getTransitFareOrBuilder
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;
-
-