ExerciseRoute.Location


public final class ExerciseRoute.Location


Represents a single location point recorded during an exercise.

Summary

Public constructors

Location(
    @NonNull Instant time,
    double latitude,
    double longitude,
    Length horizontalAccuracy,
    Length verticalAccuracy,
    Length altitude
)

Public methods

boolean
equals(Object other)
final Length

in Length unit.

final Length

in Length unit.

final double

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

final double

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

final @NonNull Instant

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

final Length

in Length unit.

int
@NonNull String

Public constructors

Location

Added in 1.1.0-alpha10
public Location(
    @NonNull Instant time,
    double latitude,
    double longitude,
    Length horizontalAccuracy,
    Length verticalAccuracy,
    Length altitude
)
Parameters
@NonNull Instant time

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

double latitude

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

double longitude

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

Length horizontalAccuracy

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

Length verticalAccuracy

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

Length altitude

in Length unit. Optional field.

Public methods

equals

public boolean equals(Object other)

getAltitude

Added in 1.1.0-alpha10
public final Length getAltitude()

in Length unit. Optional field.

getHorizontalAccuracy

Added in 1.1.0-alpha10
public final Length getHorizontalAccuracy()

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

getLatitude

Added in 1.1.0-alpha10
public final double getLatitude()

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

getLongitude

Added in 1.1.0-alpha10
public final double getLongitude()

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

getTime

Added in 1.1.0-alpha10
public final @NonNull Instant getTime()

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

getVerticalAccuracy

Added in 1.1.0-alpha10
public final Length getVerticalAccuracy()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()