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")
val comment: String?

A comment or description for the track.

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

A user-supplied description of the track.

Link copied to clipboard
val extensions: Element?

Extension schema elements.

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

A URL link associated with the track.

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

The GPS name of the track.

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

A GPS track number.

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

A list of track segments that make up the track.

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

The source of the data.

Link copied to clipboard
@SerialName(value = "type")
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.