LocationData
public final class LocationData
Data representing one location point with direction.
Summary
Public constructors |
|---|
LocationData( |
Public methods |
|
|---|---|
boolean |
|
final double |
Altitude of location in meters or |
final double |
Bearing in degrees within the range of 0.0 (inclusive), 360.0(exclusive) or |
final double |
Latitude of location. |
final double |
Longitude of location. |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
LocationData
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
getAltitude
public final double getAltitude()
Altitude of location in meters or ALTITUDE_UNAVAILABLE if not available.
getBearing
public final double getBearing()
Bearing in degrees within the range of 0.0 (inclusive), 360.0(exclusive) or BEARING_UNAVAILABLE if not available.
getLatitude
public final double getLatitude()
Latitude of location. Range from -90.0 to = 90.0.
getLongitude
public final double getLongitude()
Longitude of location. Range from -180.0 to = 180.0.