GPXTrackWriter class abstract

Writes GPX track points to GPXTrack.

The instance of the class should be added as a listener to the LocationEngine for GPX track recording. Appends the new location to the back segment of the track whenever the listener is called. The following data (if provided) can be recorded and inserted into the resulting GPXTrack: latitude, longitude, altitude, time, bearingInDegrees, pitchInDegrees, speedInMetersPerSecond, horizontalAccuracyInMeters, verticalAccuracyInMeters, bearingAccuracyInDegrees, speedAccuracyInMetersPerSecond and locationTechnology.

Use case examples:

A user wants to create and save a new GPXDocument with one GPXTrack:

A user wants to modify and save GPXTrack in the existing GPXDocument:

The GPXDocument including all tracks is saved in the GPX file format. Hence, once saved, it can be easily shared with other applications that understand the GPX file format.

Implemented types

Constructors

GPXTrackWriter()
Creates a new instance of GPXTrackWriter with an empty track inside.
factory
GPXTrackWriter.withTrack(GPXTrack track)
Creates a new instance of GPXTrackWriter with GPXTrack.
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
track GPXTrack
GPX track into which GPX track points are written. Gets the GPX track into which GPX track points are written.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLocationUpdated(Location location) → void
Called each time a new location is available.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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