Struct gapi_grpc::google::maps::routes::v1::RouteTravelAdvisory[][src]

pub struct RouteTravelAdvisory {
    pub traffic_restriction: Option<TrafficRestriction>,
    pub toll_info: Option<TollInfo>,
    pub speed_reading_intervals: Vec<SpeedReadingInterval>,
}

Encapsulates the additional information that the user should be informed about, such as possible traffic zone restriction etc.

Fields

traffic_restriction: Option<TrafficRestriction>

The traffic restriction that applies to the route. A vehicle that is subject to the restriction is not allowed to travel on the route. As of October 2019, only Jakarta, Indonesia takes into consideration.

toll_info: Option<TollInfo>

Encapsulates information about tolls on the Route. This field is only populated if we expect there are tolls on the Route. 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 is not set, then we expect there is no toll on the Route.

speed_reading_intervals: Vec<SpeedReadingInterval>

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).

Trait Implementations

impl Clone for RouteTravelAdvisory[src]

impl Debug for RouteTravelAdvisory[src]

impl Default for RouteTravelAdvisory[src]

impl Message for RouteTravelAdvisory[src]

impl PartialEq<RouteTravelAdvisory> for RouteTravelAdvisory[src]

impl StructuralPartialEq for RouteTravelAdvisory[src]

Auto Trait Implementations

impl RefUnwindSafe for RouteTravelAdvisory

impl Send for RouteTravelAdvisory

impl Sync for RouteTravelAdvisory

impl Unpin for RouteTravelAdvisory

impl UnwindSafe for RouteTravelAdvisory

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]