public class Location
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
altitude
Height in metres above sea level.
|
double |
altitudeAccuracy
An indicator of how accurate the altitude value is (distance in metres).
|
double |
latitude
The latitude of this location, expressed in degrees (decimal value).
|
double |
latitudeAccuracy
The accuracy of the latitude value, expressed as a value in metres.
|
double |
longitude
The longitude of this location, expressed in degrees (decimal value).
|
double |
longitudeAccuracy
The accuracy of the longitude value, expressed a value in metres.
|
long |
timestamp
A UTC timestamp in milliseconds that represents the time this location data was sampled or became relevant.
|
Constructor and Description |
---|
Location() |
public double latitude
public double latitudeAccuracy
Double.NaN
will indicate that the accuracy could not be obtained.public double longitude
public double longitudeAccuracy
Double.NaN
will indicate that the accuracy could not be obtained.public double altitude
Double.NaN
will indicate that the value could not be obtained.public double altitudeAccuracy
Double.NaN
will indicate that the accuracy could not be obtained.public long timestamp
System.currentTimeMillis()