Track

data class Track(val name: String? = null, val comment: String? = null, val description: String? = null, val source: String? = null, val link: Link? = null, val number: Int? = null, val type: String? = null, val segments: List<TrackSegment> = listOf(), val extensions: Element? = null)(source)

Represents a GPX track (trk element), an ordered list of points describing a path.

A track is made up of one or more track segments.

See trkType.

Constructors

Link copied to clipboard
constructor(name: String? = null, comment: String? = null, description: String? = null, source: String? = null, link: Link? = null, number: Int? = null, type: String? = null, segments: List<TrackSegment> = listOf(), extensions: Element? = null)

Properties

Link copied to clipboard
@SerialName(value = "cmt")
@XmlElement
val comment: String?

A comment or description for the track.

Link copied to clipboard
@SerialName(value = "desc")
@XmlElement
val description: String?

A user-supplied description of the track.

Link copied to clipboard
@XmlSerialName(value = "extensions")
@XmlElement
val extensions: Element?

Extension schema elements.

Link copied to clipboard
@SerialName(value = "link")
@XmlElement
val link: Link?

A URL link associated with the track.

Link copied to clipboard
@SerialName(value = "name")
@XmlElement
val name: String?

The GPS name of the track.

Link copied to clipboard
@SerialName(value = "number")
@XmlElement
val number: Int?

A GPS track number.

Link copied to clipboard
@SerialName(value = "trkseg")
@XmlSerialName(value = "trkseg")
@XmlElement
val segments: List<TrackSegment>

A list of track segments that make up the track.

Link copied to clipboard
@SerialName(value = "src")
@XmlElement
val source: String?

The source of the data.

Link copied to clipboard
@SerialName(value = "type")
@XmlElement
val type: String?

The type of activity for the track (e.g., "cycling", "running").

Functions

Link copied to clipboard

Converts this Track object into a GeoJSON Feature object.