pub struct Route {
pub name: Option<String>,
pub comment: Option<String>,
pub description: Option<String>,
pub source: Option<String>,
pub links: Vec<Link>,
pub number: Option<u32>,
pub type_: Option<String>,
pub points: Vec<Waypoint>,
}
Expand description
Route represents an ordered list of waypoints representing a series of turn points leading to a destination.
Fields§
§name: Option<String>
GPS name of route.
comment: Option<String>
GPS comment for route.
description: Option<String>
User description of route.
source: Option<String>
Source of data. Included to give user some idea of reliability and accuracy of data.
links: Vec<Link>
Links to external information about the route.
number: Option<u32>
GPS route number.
type_: Option<String>
Type (classification) of route.
points: Vec<Waypoint>
Each Waypoint holds the coordinates, elevation, timestamp, and metadata for a single point in a track.
Implementations§
source§impl Route
impl Route
sourcepub fn linestring(&self) -> LineString<f64>
pub fn linestring(&self) -> LineString<f64>
Gives the linestring of the segment’s points, the sequence of points that comprises the track segment.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Route
impl<'de> Deserialize<'de> for Route
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 Route
impl PartialEq for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
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