LocationData


public final class LocationData


Data representing one location point with direction.

Summary

Public constructors

LocationData(
    @FloatRange(from = -90.0, to = 90.0) double latitude,
    @FloatRange(from = -180.0, to = 180.0) double longitude,
    double altitude,
    double bearing
)

Public methods

boolean
equals(Object other)
final double

Altitude of location in meters or ALTITUDE_UNAVAILABLE if not available.

final double

Bearing in degrees within the range of 0.0 (inclusive), 360.0(exclusive) or BEARING_UNAVAILABLE if not available.

final double

Latitude of location.

final double

Longitude of location.

int
@NonNull String

Public constructors

LocationData

Added in 1.0.0
public LocationData(
    @FloatRange(from = -90.0, to = 90.0) double latitude,
    @FloatRange(from = -180.0, to = 180.0) double longitude,
    double altitude,
    double bearing
)

Public methods

equals

public boolean equals(Object other)

getAltitude

Added in 1.0.0
public final double getAltitude()

Altitude of location in meters or ALTITUDE_UNAVAILABLE if not available.

getBearing

Added in 1.0.0
public final double getBearing()

Bearing in degrees within the range of 0.0 (inclusive), 360.0(exclusive) or BEARING_UNAVAILABLE if not available.

getLatitude

Added in 1.0.0
public final double getLatitude()

Latitude of location. Range from -90.0 to = 90.0.

getLongitude

Added in 1.0.0
public final double getLongitude()

Longitude of location. Range from -180.0 to = 180.0.

hashCode

public int hashCode()

toString

public @NonNull String toString()