pub struct Point {
pub elevation: f64,
pub location: LatLng,
pub resolution: Option<f64>,
}Expand description
Structure for an elevation sample point.
Fields§
§elevation: f64Elevation of the location in meters.
location: LatLngPosition for which elevation data is being computed. Note that for path
requests, the set of location elements will contain the sampled points
along the path.
resolution: Option<f64>Maximum distance between data points from which the elevation was
interpolated, in meters. This property will be missing if the
resolution is not known. Note that elevation data becomes more coarse
(larger resolution values) when multiple points are passed. To obtain
the most accurate elevation value for a point, it should be queried
independently.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Point
impl<'de> Deserialize<'de> for Point
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 PartialEq for Point
impl PartialEq for Point
source§impl PartialOrd for Point
impl PartialOrd for Point
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for Point
Auto Trait Implementations§
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
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