Document

data class Document(val schemaLocation: String = "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd", val version: String = "1.1", val creator: String = "org.maplibre.spatialk.gpx", val metadata: Metadata? = null, val tracks: List<Track> = listOf(), val routes: List<Route> = listOf(), val waypoints: List<Waypoint> = listOf(), val extensions: Element? = null)(source)

Represents the root element of a GPX file.

GPX is an XML schema designed as a common GPS data format for software applications. It can be used to describe waypoints, tracks, and routes.

See gpx.

Constructors

Link copied to clipboard
constructor(schemaLocation: String = "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd", version: String = "1.1", creator: String = "org.maplibre.spatialk.gpx", metadata: Metadata? = null, tracks: List<Track> = listOf(), routes: List<Route> = listOf(), waypoints: List<Waypoint> = listOf(), extensions: Element? = null)

Properties

Link copied to clipboard

The name or URL of the software that created the GPX file.

Link copied to clipboard
val extensions: Element?

Extension schema elements.

Link copied to clipboard

Metadata about the file.

Link copied to clipboard
@SerialName(value = "routes")
val routes: List<Route>

A list of routes.

Link copied to clipboard

The location of the GPX schema. Should be http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd.

Link copied to clipboard
@SerialName(value = "tracks")
val tracks: List<Track>

A list of tracks.

Link copied to clipboard

The GPX version. Should be 1.1.

Link copied to clipboard
@SerialName(value = "waypoints")
val waypoints: List<Waypoint>

A list of waypoints.