GPXDocument class abstract

Use the GPXDocument to load the GPX file.

Only track data is used from the GPX file format (see trkType at https://www.topografix.com/GPX/1/1/#type_trkType). Any unknown elements in the file are ignored. Any known element with an invalid value returns an error. Elevation values are ignored.

Constructors

GPXDocument(String gpxFilePath, GPXOptions options)
Create a GPX document from a file.
factory
GPXDocument.withTracks(List<GPXTrack> tracks)
Create a GPX document from a list of GPX tracks.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tracks → List<GPXTrack>
The tracks stored in this GPX document. Gets the tracks stored in this GPX document.
no setter

Methods

addTrack(GPXTrack trackToAdd) → void
Add track to GPX document.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(String gpxFilePath) → bool
Saves the document to a file.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromString(String content, GPXOptions options) GPXDocument
Create a GPX document from a string.