static final class PositionImpl.CoordinatesImpl extends JavaScriptObject implements Position.Coordinates
| Modifier | Constructor and Description |
|---|---|
protected |
CoordinatesImpl() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAccuracy()
Returns the estimated accuracy reported by the browser, in meters.
|
java.lang.Double |
getAltitude()
Returns the altitude reported by the browser, in meters, above the reference
ellipsoid, or
null if the browser did not report an
altitude. |
java.lang.Double |
getAltitudeAccuracy()
Returns the estimated accuracy of the altitude reported by the browser,
in meters, or
null if the browser did not report an
accuracy. |
java.lang.Double |
getHeading()
Returns the heading, in degrees from due north, reported by the browser,
based on previous calls to get the user's position, or
null
if the browser did not report a heading. |
double |
getLatitude()
Returns the decimal latitude reported by the browser.
|
double |
getLongitude()
Returns the decimal longitude reported by the browser.
|
java.lang.Double |
getSpeed()
Returns the speed, in meters/second, reported by the browser, based on
previous calls to get the user's position, or
null if the
browser did not report a speed. |
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringpublic final double getAccuracy()
Position.CoordinatesgetAccuracy in interface Position.Coordinatespublic final java.lang.Double getAltitude()
Position.Coordinatesnull if the browser did not report an
altitude.getAltitude in interface Position.Coordinatespublic final java.lang.Double getAltitudeAccuracy()
Position.Coordinatesnull if the browser did not report an
accuracy.getAltitudeAccuracy in interface Position.Coordinatespublic final java.lang.Double getHeading()
Position.Coordinatesnull
if the browser did not report a heading.getHeading in interface Position.Coordinatespublic final double getLatitude()
Position.CoordinatesgetLatitude in interface Position.Coordinatespublic final double getLongitude()
Position.CoordinatesgetLongitude in interface Position.Coordinatespublic final java.lang.Double getSpeed()
Position.Coordinatesnull if the
browser did not report a speed.getSpeed in interface Position.Coordinates