Enum google_maps::directions::request::transit_route_preference::TransitRoutePreference [−][src]
pub enum TransitRoutePreference { FewerTransfers, LessWalking, }
Expand description
Specifies preferences for transit routes.
Using this parameter, you can bias the options returned, rather than accepting the default best route chosen by the API. This parameter may only be specified for transit directions, and only if the request includes an API key or a Google Maps Platform Premium Plan client ID.
Variants
Indicates that the calculated route should prefer a limited number of transfers.
Indicates that the calculated route should prefer limited amounts of walking.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Converts a TransitRoutePreference
enum to a String
that contains a
transit route
preference
code.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Gets a TransitRoutePreference
enum from a String
that contains a
valid transit route
preference
code.
Auto Trait Implementations
impl RefUnwindSafe for TransitRoutePreference
impl Send for TransitRoutePreference
impl Sync for TransitRoutePreference
impl Unpin for TransitRoutePreference
impl UnwindSafe for TransitRoutePreference
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V