ExerciseRoute.Location


class ExerciseRoute.Location


Represents a single location point recorded during an exercise.

Summary

Public constructors

Location(
    time: Instant,
    latitude: Double,
    longitude: Double,
    horizontalAccuracy: Length?,
    verticalAccuracy: Length?,
    altitude: Length?
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Length?

in Length unit.

Length?

in Length unit.

Double

Latitude of the location point; Required field; Valid range -90; 90

Double

Longitude of the location point; Required field; Valid range -180; 180

Instant

The point in time when the location was recorded; Required field.

Length?

in Length unit.

Public constructors

Location

Added in 1.1.0-alpha10
Location(
    time: Instant,
    latitude: Double,
    longitude: Double,
    horizontalAccuracy: Length? = null,
    verticalAccuracy: Length? = null,
    altitude: Length? = null
)
Parameters
time: Instant

The point in time when the location was recorded; Required field.

latitude: Double

Latitude of the location point; Required field; Valid range -90; 90

longitude: Double

Longitude of the location point; Required field; Valid range -180; 180

horizontalAccuracy: Length? = null

in Length unit. Optional field. Valid range: non-negative numbers.

verticalAccuracy: Length? = null

in Length unit. Optional field. Valid range: non-negative numbers.

altitude: Length? = null

in Length unit. Optional field.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

altitude

Added in 1.1.0-alpha10
val altitudeLength?

in Length unit. Optional field.

horizontalAccuracy

Added in 1.1.0-alpha10
val horizontalAccuracyLength?

in Length unit. Optional field. Valid range: non-negative numbers.

latitude

Added in 1.1.0-alpha10
val latitudeDouble

Latitude of the location point; Required field; Valid range -90; 90

longitude

Added in 1.1.0-alpha10
val longitudeDouble

Longitude of the location point; Required field; Valid range -180; 180

time

Added in 1.1.0-alpha10
val timeInstant

The point in time when the location was recorded; Required field.

verticalAccuracy

Added in 1.1.0-alpha10
val verticalAccuracyLength?

in Length unit. Optional field. Valid range: non-negative numbers.