Waypoint

data class Waypoint(val latitude: Double, val longitude: Double, val elevation: Double? = null, val timestamp: Instant? = null, val magneticVariation: Double? = null, val geoIdHeight: Double? = null, val name: String? = null, val comment: String? = null, val description: String? = null, val source: String? = null, val link: Link? = null, val symbol: String? = null, val type: String? = null, val fix: String? = null, val satelliteCount: Int? = null, val horizontalDop: Double? = null, val verticalDop: Double? = null, val positionDop: Double? = null, val dgpsAge: Double? = null, val dgpsId: Double? = null, val extensions: Element? = null)(source)

Represents a waypoint, point of interest, or named feature on a map. This corresponds to the wptType in the GPX 1.1 schema.

A waypoint is a single point on the earth, defined by its latitude and longitude. It can optionally include other information such as elevation, time, and descriptive details.

See wptType.

Constructors

Link copied to clipboard
constructor(latitude: Double, longitude: Double, elevation: Double? = null, timestamp: Instant? = null, magneticVariation: Double? = null, geoIdHeight: Double? = null, name: String? = null, comment: String? = null, description: String? = null, source: String? = null, link: Link? = null, symbol: String? = null, type: String? = null, fix: String? = null, satelliteCount: Int? = null, horizontalDop: Double? = null, verticalDop: Double? = null, positionDop: Double? = null, dgpsAge: Double? = null, dgpsId: Double? = null, extensions: Element? = null)

Properties

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

GPS waypoint comment.

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

A text description of the element.

Link copied to clipboard
@SerialName(value = "ageofdgpsdata")
val dgpsAge: Double?

Number of seconds since last DGPS update.

Link copied to clipboard
@SerialName(value = "dgpsid")
val dgpsId: Double?

ID of DGPS station used in differential correction.

Link copied to clipboard
@SerialName(value = "ele")
val elevation: Double?

Elevation of the point in meters.

Link copied to clipboard
val extensions: Element?

Extension schema elements.

Link copied to clipboard
val fix: String?

Type of GPS fix. 'none' means no fix. '2d' and '3d' are just estimates of quality.

Link copied to clipboard
@SerialName(value = "geoidheight")
val geoIdHeight: Double?

Height of geoid (mean sea level) above WGS84 earth ellipsoid, in meters.

Link copied to clipboard
@SerialName(value = "hdop")
val horizontalDop: Double?

Horizontal dilution of precision.

Link copied to clipboard
@SerialName(value = "lat")
val latitude: Double

The latitude of the point. Decimal degrees, WGS84 datum. (Required)

Link copied to clipboard
val link: Link?

Link to additional information about the waypoint.

Link copied to clipboard
@SerialName(value = "lon")
val longitude: Double

The longitude of the point. Decimal degrees, WGS84 datum. (Required)

Link copied to clipboard
@SerialName(value = "magvar")
val magneticVariation: Double?

Magnetic variation (in degrees) at the point.

Link copied to clipboard
val name: String?

The GPS name of the waypoint.

Link copied to clipboard
@SerialName(value = "pdop")
val positionDop: Double?

Position dilution of precision.

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

Number of satellites used to calculate the GPX fix.

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

Source of data. Included to give user some idea of reliability and accuracy of data.

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

Text of GPS symbol name.

Link copied to clipboard
@Serializable(with = UtcDefaultInstantSerializer::class)
@SerialName(value = "time")
val timestamp: Instant?

The time of the waypoint creation.

Link copied to clipboard
val type: String?

Type of waypoint.

Link copied to clipboard
@SerialName(value = "vdop")
val verticalDop: Double?

Vertical dilution of precision.

Functions

Link copied to clipboard

Converts a Waypoint into a GeoJSON Feature with a Point geometry.