Interface RouteLegTravelAdvisoryOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    RouteLegTravelAdvisory, RouteLegTravelAdvisory.Builder

    public interface RouteLegTravelAdvisoryOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • 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`. 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`.
         
        .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`. 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`.
         
        .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`. 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`.
         
        .google.maps.routing.v2.TollInfo toll_info = 1;
      • 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 `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

        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 `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 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).
         
        repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
      • 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 `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

        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 `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;