[−][src]Enum google_maps::directions::request::waypoint::Waypoint
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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 PartialEq<Waypoint> for Waypoint
[src]
impl PartialOrd<Waypoint> for Waypoint
[src]
fn partial_cmp(&self, other: &Waypoint) -> Option<Ordering>
[src]
fn lt(&self, other: &Waypoint) -> bool
[src]
fn le(&self, other: &Waypoint) -> bool
[src]
fn gt(&self, other: &Waypoint) -> bool
[src]
fn ge(&self, other: &Waypoint) -> bool
[src]
impl Serialize for Waypoint
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Waypoint
[src]
Auto Trait Implementations
impl RefUnwindSafe for Waypoint
impl Send for Waypoint
impl Sync for Waypoint
impl Unpin for Waypoint
impl UnwindSafe for Waypoint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,