[][src]Enum google_maps::directions::request::waypoint::Waypoint

pub enum Waypoint {
    Address(String),
    LatLng(LatLng),
    PlaceId(String),
    Polyline(String),
}

Used to specify pass throughs or stopovers at intermediate locations.

Variants

Address(String)

If you pass an address, the Directions service geocodes the string and converts it to latitude & longitude coordinates to calculate directions. This coordinate may be different from that returned by the Geocoding API, for example a building entrance rather than its center.

LatLng(LatLng)

If you pass coordinates, they are used unchanged to calculate directions.

PlaceId(String)

The place ID may only be specified if the request includes an API key or a Google Maps Platform Premium Plan client ID. You can retrieve place IDs from the Geocoding API and the Places API (including Place Autocomplete). For an example using place IDs from Place Autocomplete, see Place Autocomplete and Directions. For more about place IDs, see the Place ID overview.

Polyline(String)

Alternatively, you can supply an encoded set of points using the Encoded Polyline Algorithm. You will find an encoded set is useful for a large number of waypoints, because the URL is significantly shorter. All web services have a URL limit of 8192 characters.

Trait Implementations

impl Clone for Waypoint[src]

impl Debug for Waypoint[src]

impl<'de> Deserialize<'de> for Waypoint[src]

impl Eq for Waypoint[src]

impl<'_> From<&'_ Waypoint> for String[src]

fn from(waypoint: &Waypoint) -> String[src]

Converts a Waypoint enum to a String that contains a waypoint value.

impl Hash for Waypoint[src]

impl Ord for Waypoint[src]

impl PartialEq<Waypoint> for Waypoint[src]

impl PartialOrd<Waypoint> for Waypoint[src]

impl Serialize for Waypoint[src]

impl StructuralEq for Waypoint[src]

impl StructuralPartialEq for Waypoint[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<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>,