pub struct Point {
pub elevation: f64,
pub location: LatLng,
pub resolution: Option<f64>,
}
Expand description
Structure for an elevation sample point.
Fields§
§elevation: f64
Elevation of the location in meters.
location: LatLng
Position 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<Point> for Point
impl PartialEq<Point> for Point
source§impl PartialOrd<Point> for Point
impl PartialOrd<Point> 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 more