javax.microedition.location
Class QualifiedCoordinates
java.lang.Object
javax.microedition.location.Coordinates
javax.microedition.location.QualifiedCoordinates
public class QualifiedCoordinates
- extends Coordinates
Constructor Summary |
QualifiedCoordinates(double latitude,
double longitude,
float altitude,
float horizontalAccuracy,
float verticalAccuracy)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QualifiedCoordinates
public QualifiedCoordinates(double latitude,
double longitude,
float altitude,
float horizontalAccuracy,
float verticalAccuracy)
getHorizontalAccuracy
public float getHorizontalAccuracy()
- Returns the horizontal accuracy of the location in meters (1-sigma standard deviation).
A value of Float.NaN means the horizontal accuracy could not be determined.
The horizontal accuracy is the RMS (root mean square) of east accuracy (latitudinal error
in meters, 1-sigma standard deviation), north accuracy (longitudinal error in meters, 1-sigma).
- Returns:
- the horizontal accuracy in meters. Float.NaN if this is not known
getVerticalAccuracy
public float getVerticalAccuracy()
- Returns the accuracy of the location in meters in vertical direction (orthogonal to ellipsoid surface,
1-sigma standard deviation). A value of Float.NaN means the vertical accuracy could not be determined.
- Returns:
- the vertical accuracy in meters. Float.NaN if this is not known.
setHorizontalAccuracy
public void setHorizontalAccuracy(float horizontalAccuracy)
setVerticalAccuracy
public void setVerticalAccuracy(float verticalAccuracy)