public class Geolocation extends APIBean
| Constructor and Description |
|---|
Geolocation()
Default constructor
|
Geolocation(double latitude,
double longitude,
double altitude,
float xDoP,
float yDoP,
long timestamp)
Constructor with parameters
|
Geolocation(double latitude,
double longitude,
long timestamp)
Constructor with parameters
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAltitude()
Returns altitude in meters
|
double |
getLatitude()
Returns the latitude in degrees
|
double |
getLongitude()
Returns the longitude in degrees
|
long |
getTimestamp()
Timestamp Getter
|
float |
getXDoP()
Gets Dilution of precision on the X measurement.
|
float |
getYDoP()
Gets Dilution of precision on the Y measurement.
|
void |
setAltitude(double altitude)
Set altitude in meters
|
void |
setLatitude(double latitude)
Set the latitude in degrees
|
void |
setLongitude(double longitude)
Returns the latitude in degrees
|
void |
setTimestamp(long timestamp)
Timestamp Setter
|
void |
setXDoP(float xDoP)
Sets Dilution of precision on the X measurement.
|
void |
setYDoP(float yDoP)
Sets Dilution of precision on the Y measurement.
|
public Geolocation()
public Geolocation(double latitude,
double longitude,
double altitude,
float xDoP,
float yDoP,
long timestamp)
latitude - Latitude of the measurementlongitude - Longitude of the measurementaltitude - Altitude of the measurementxDoP - Dilution of precision on the X measurementyDoP - Dilution of precision on the Y measurementtimestamp - Timestamp of the measurementpublic Geolocation(double latitude,
double longitude,
long timestamp)
latitude - Latitude of the measurementlongitude - Longitude of the measurementtimestamp - Timestamp of the measurementpublic double getAltitude()
public void setAltitude(double altitude)
altitude - Altitude of the measurementpublic double getLatitude()
public void setLatitude(double latitude)
latitude - Latitude of the measurementpublic double getLongitude()
public void setLongitude(double longitude)
longitude - Longitude of the measurementpublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - Timestamppublic float getXDoP()
public void setXDoP(float xDoP)
xDoP - Dilution of precision on the X measurement. Measured in meters.public float getYDoP()
public void setYDoP(float yDoP)
yDoP - Dilution of precision on the Y measurement. Measured in meters.