pub enum Locations {
LatLngs(Vec<LatLng>),
Polyline(String),
}Expand description
Defines the location(s) on the earth from which to return elevation data.
This parameter takes either a single location as a latitude/longitude pair, multiple latitude/longitude pairs, or an encoded polyline.
Variants§
LatLngs(Vec<LatLng>)
A single or multiple latitude/longitude pairs.
Polyline(String)
An encoded polyline.
See also: the Google Encoded Polyline encoding & decoding crate called polyline.
Implementations§
Source§impl Locations
impl Locations
Sourcepub fn from_polyline(polyline: impl Into<String>) -> Self
pub fn from_polyline(polyline: impl Into<String>) -> Self
An encoded polyline.
See also: the Google Encoded Polyline encoding & decoding crate called polyline.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Locations
impl<'de> Deserialize<'de> for Locations
Source§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
Source§impl Ord for Locations
impl Ord for Locations
Source§impl PartialOrd for Locations
impl PartialOrd for Locations
impl Eq for Locations
impl StructuralPartialEq for Locations
Auto Trait Implementations§
impl Freeze for Locations
impl RefUnwindSafe for Locations
impl Send for Locations
impl Sync for Locations
impl Unpin for Locations
impl UnwindSafe for Locations
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more