Struct gpx::Track[][src]

pub struct Track {
    pub name: Option<String>,
    pub comment: Option<String>,
    pub description: Option<String>,
    pub source: Option<String>,
    pub links: Vec<Link>,
    pub _type: Option<String>,
    pub segments: Vec<TrackSegment>,
}

Track represents an ordered list of points describing a path.

Fields

GPS name of track.

GPS comment for track.

User description of track.

Source of data. Included to give user some idea of reliability and accuracy of data.

Links to external information about the track.

Type (classification) of track.

A Track Segment holds a list of Track Points which are logically connected in order. To represent a single GPS track where GPS reception was lost, or the GPS receiver was turned off, start a new Track Segment for each continuous span of track data.

Methods

impl Track
[src]

Gives the multi-linestring that this track represents, which is multiple linestrings.

Creates a new Track with default values.

use gpx::{Track, TrackSegment};

let mut track: Track = Track::new();

let segment = TrackSegment::new();
track.segments.push(segment);

Trait Implementations

impl Clone for Track
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Track
[src]

Returns the "default value" for a type. Read more

impl Debug for Track
[src]

Formats the value using the given formatter. Read more

impl From<Track> for Geometry<f64>
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Track

impl Sync for Track