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

pub struct RouteLeg {
    pub distance_meters: i32,
    pub duration: Option<Duration>,
    pub static_duration: Option<Duration>,
    pub polyline: Option<Polyline>,
    pub start_location: Option<Location>,
    pub end_location: Option<Location>,
    pub steps: Vec<RouteLegStep>,
    pub travel_advisory: Option<RouteLegTravelAdvisory>,
}

Encapsulates a segment between non-via waypoints.

Fields

distance_meters: i32

The travel distance of the route leg, in meters.

duration: Option<Duration>

The length of time needed to navigate the leg. If the route_preference is set to TRAFFIC_UNAWARE, then this value is the same as static_duration. If the route_preference is either TRAFFIC_AWARE or TRAFFIC_AWARE_OPTIMAL, then this value is calculated taking traffic conditions into account.

static_duration: Option<Duration>

The duration of traveling through the leg, calculated without taking traffic conditions into consideration.

polyline: Option<Polyline>

The overall polyline for this leg. This includes that each step’s polyline.

start_location: Option<Location>

The start location of this leg. This might be different from the provided origin. For example, when the provided origin is not near a road, this is a point on the road.

end_location: Option<Location>

The end location of this leg. This might be different from the provided destination. For example, when the provided destination is not near a road, this is a point on the road.

steps: Vec<RouteLegStep>

An array of steps denoting segments within this leg. Each step represents one navigation instruction.

travel_advisory: Option<RouteLegTravelAdvisory>

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

Trait Implementations

impl Clone for RouteLeg[src]

impl Debug for RouteLeg[src]

impl Default for RouteLeg[src]

impl Message for RouteLeg[src]

impl PartialEq<RouteLeg> for RouteLeg[src]

impl StructuralPartialEq for RouteLeg[src]

Auto Trait Implementations

impl RefUnwindSafe for RouteLeg

impl Send for RouteLeg

impl Sync for RouteLeg

impl Unpin for RouteLeg

impl UnwindSafe for RouteLeg

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]