pub struct GPXWaypoint {Show 20 fields
pub lat: f64,
pub lon: f64,
pub ele: Option<f64>,
pub time: Option<String>,
pub magvar: Option<f64>,
pub geoidheight: Option<f64>,
pub name: Option<String>,
pub cmt: Option<String>,
pub desc: Option<String>,
pub src: Option<String>,
pub link: Option<Vec<GPXLink>>,
pub sym: Option<String>,
pub type: Option<String>,
pub fix: Option<GPXFixType>,
pub sat: Option<usize>,
pub hdop: Option<f64>,
pub vdop: Option<f64>,
pub pdop: Option<f64>,
pub ageofdgpsdata: Option<f64>,
pub dgpsid: Option<f64>,
}Expand description
Represents a waypoint, point of interest, or named feature on a map.
Fields§
§lat: f64Latitude in decimal degrees (WGS84)
lon: f64Longitude in decimal degrees (WGS84)
ele: Option<f64>Optional elevation in meters
time: Option<String>Optional timestamp in ISO 8601 format
magvar: Option<f64>Optional magnetic variation in degrees
geoidheight: Option<f64>Height of geoid above WGS84 ellipsoid
name: Option<String>Waypoint name
cmt: Option<String>Waypoint comment
desc: Option<String>Description of the waypoint
src: Option<String>Source of data
link: Option<Vec<GPXLink>>Links to additional information
sym: Option<String>Symbol name for the waypoint
type: Option<String>Classification type of the waypoint
fix: Option<GPXFixType>Type of GPS fix
sat: Option<usize>Number of satellites used for the fix
hdop: Option<f64>Horizontal dilution of precision
vdop: Option<f64>Vertical dilution of precision
pdop: Option<f64>Position dilution of precision
ageofdgpsdata: Option<f64>Time since last DGPS update in seconds
dgpsid: Option<f64>ID of DGPS station used
Implementations§
Source§impl GPXWaypoint
impl GPXWaypoint
Sourcepub fn new(waypoint_xml: XMLTagItem) -> Self
pub fn new(waypoint_xml: XMLTagItem) -> Self
Creates a new GPXWaypoint from an XMLTagItem
Sourcepub fn point(&self) -> VectorPoint<GPXWaypoint>
pub fn point(&self) -> VectorPoint<GPXWaypoint>
Create a vector point from the Waypoint
Sourcepub fn feature(&self) -> VectorFeature<(), GPXProperties, GPXWaypoint>
pub fn feature(&self) -> VectorFeature<(), GPXProperties, GPXWaypoint>
Create a vector point from the Waypoint
Trait Implementations§
Source§impl Clone for GPXWaypoint
impl Clone for GPXWaypoint
Source§fn clone(&self) -> GPXWaypoint
fn clone(&self) -> GPXWaypoint
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GPXWaypoint
impl Debug for GPXWaypoint
Source§impl Default for GPXWaypoint
impl Default for GPXWaypoint
Source§fn default() -> GPXWaypoint
fn default() -> GPXWaypoint
Source§impl<'de> Deserialize<'de> for GPXWaypoint
impl<'de> Deserialize<'de> for GPXWaypoint
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>,
Source§impl FeatureReader<(), GPXProperties, GPXWaypoint> for GPXReader
A feature reader trait with a callback-based approach
impl FeatureReader<(), GPXProperties, GPXWaypoint> for GPXReader
A feature reader trait with a callback-based approach
Source§type FeatureIterator<'a> = GPXIterator<'a>
type FeatureIterator<'a> = GPXIterator<'a>
Source§fn iter(&self) -> Self::FeatureIterator<'_>
fn iter(&self) -> Self::FeatureIterator<'_>
Source§impl From<&Map<String, ValueType>> for GPXWaypoint
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GPXWaypoint
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GPXWaypoint
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GPXWaypoint
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GPXWaypoint> for MValue
Starting from a struct, convert to an MValue
impl From<GPXWaypoint> for MValue
Starting from a struct, convert to an MValue
Source§fn from(value: GPXWaypoint) -> MValue
fn from(value: GPXWaypoint) -> MValue
Source§impl From<GPXWaypoint> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GPXWaypoint> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§fn from(value: GPXWaypoint) -> ValueType
fn from(value: GPXWaypoint) -> ValueType
Source§impl From<Map<String, ValueType>> for GPXWaypoint
Starting from an MValue, convert to a struct
impl From<Map<String, ValueType>> for GPXWaypoint
Starting from an MValue, convert to a struct
Source§impl From<ValueType> for GPXWaypoint
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GPXWaypoint
If this struct is nested into another struct, pull out the MValue and let
From
Source§impl PartialEq for GPXWaypoint
impl PartialEq for GPXWaypoint
Source§impl Serialize for GPXWaypoint
impl Serialize for GPXWaypoint
impl MValueCompatible for GPXWaypoint
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GPXWaypoint
Auto Trait Implementations§
impl Freeze for GPXWaypoint
impl RefUnwindSafe for GPXWaypoint
impl Send for GPXWaypoint
impl Sync for GPXWaypoint
impl Unpin for GPXWaypoint
impl UnwindSafe for GPXWaypoint
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().