[−][src]Struct google_maps::Geometry
Contains the geocoded latitude/longitude, recommended viewport for displaying the returned result, the bounding box, and other additional data.
Fields
location: LatLng
Contains the geocoded latitude, longitude value. For normal address lookups, this field is typically the most important.
location_type: LocationType
Stores additional data about the specified location.
viewport: Bounds
Contains the recommended viewport for displaying the returned result, specified as two latitude/longitude values defining the southwest and northeast corner of the viewport bounding box. Generally the viewport is used to frame a result when displaying it to a user.
bounds: Option<Bounds>
Stores the bounding box which can fully contain the returned result. Note that these bounds may not match the recommended viewport. (For example, San Francisco includes the Farallon islands, which are technically part of the city, but probably should not be returned in the viewport.)
Methods
impl Geometry
[src]
pub fn get_bounds_southwest_lat(&self) -> Option<f64>
[src]
A helper function for destructuring the optional bounds
field. If
the bounds field is populated, this function will return the
south-west latitude. If the bounds field is empty, this function
will return None
.
let bounds_southwest_lat = geocoding.geometry.get_bounds_southwest_lng();
pub fn get_bounds_southwest_lng(&self) -> Option<f64>
[src]
A helper function for destructuring the optional bounds
field. If
the bounds field is populated, this function will return the
south-west latitude. If the bounds field is empty, this function
will return None
.
let bounds_southwest_lng = geocoding.geometry.get_bounds_southwest_lng();
pub fn get_bounds_northeast_lat(&self) -> Option<f64>
[src]
A helper function for destructuring the optional bounds
field. If
the bounds field is populated, this function will return the
north-east latitude. If the bounds field is empty, this function
will return None
.
let bounds_northeast_lat = geocoding.geometry.get_bounds_northeast_lng();
pub fn get_bounds_northeast_lng(&self) -> Option<f64>
[src]
A helper function for destructuring the optional bounds
field. If
the bounds field is populated, this function will return the
north-east latitude. If the bounds field is empty, this function
will return None
.
let bounds_northeast_lng = geocoding.geometry.get_bounds_northeast_lng();
Trait Implementations
impl Clone for Geometry
[src]
impl Debug for Geometry
[src]
impl<'de> Deserialize<'de> for Geometry
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Geometry> for Geometry
[src]
impl PartialOrd<Geometry> for Geometry
[src]
fn partial_cmp(&self, other: &Geometry) -> Option<Ordering>
[src]
fn lt(&self, other: &Geometry) -> bool
[src]
fn le(&self, other: &Geometry) -> bool
[src]
fn gt(&self, other: &Geometry) -> bool
[src]
fn ge(&self, other: &Geometry) -> bool
[src]
impl Serialize for Geometry
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Geometry
[src]
Auto Trait Implementations
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnwindSafe for Geometry
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>,