Package com.google.maps.routing.v2
Interface RouteLegTravelAdvisoryOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RouteLegTravelAdvisory,RouteLegTravelAdvisory.Builder
@Generated
public interface RouteLegTravelAdvisoryOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetSpeedReadingIntervals(int index) Speed reading intervals indicating traffic density.intSpeed reading intervals indicating traffic density.Speed reading intervals indicating traffic density.getSpeedReadingIntervalsOrBuilder(int index) Speed reading intervals indicating traffic density.List<? extends SpeedReadingIntervalOrBuilder>Speed reading intervals indicating traffic density.Contains information about tolls on the specific `RouteLeg`.Contains information about tolls on the specific `RouteLeg`.booleanContains information about tolls on the specific `RouteLeg`.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasTollInfo
boolean hasTollInfo()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`.
.google.maps.routing.v2.TollInfo toll_info = 1;- Returns:
- Whether the tollInfo field is set.
-
getTollInfo
TollInfo getTollInfo()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`.
.google.maps.routing.v2.TollInfo toll_info = 1;- Returns:
- The tollInfo.
-
getTollInfoOrBuilder
TollInfoOrBuilder getTollInfoOrBuilder()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`.
.google.maps.routing.v2.TollInfo toll_info = 1; -
getSpeedReadingIntervalsList
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 `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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; -
getSpeedReadingIntervals
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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; -
getSpeedReadingIntervalsCount
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 `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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; -
getSpeedReadingIntervalsOrBuilderList
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 `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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; -
getSpeedReadingIntervalsOrBuilder
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).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
-