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

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-alpha07
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. Valid range: non-negative numbers.

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

altitude

Added in 1.1.0-alpha07
val altitudeLength?

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

horizontalAccuracy

Added in 1.1.0-alpha07
val horizontalAccuracyLength?

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

latitude

Added in 1.1.0-alpha07
val latitudeDouble

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

longitude

Added in 1.1.0-alpha07
val longitudeDouble

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

time

Added in 1.1.0-alpha07
val timeInstant

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

verticalAccuracy

Added in 1.1.0-alpha07
val verticalAccuracyLength?

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