Interface Position.Coordinates
- All Known Implementing Classes:
PositionImpl.CoordinatesImpl
- Enclosing interface:
Position
Represents position reported by the browser.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the estimated accuracy reported by the browser, in meters.Returns the altitude reported by the browser, in meters, above the reference ellipsoid, ornull
if the browser did not report an altitude.Returns the estimated accuracy of the altitude reported by the browser, in meters, ornull
if the browser did not report an accuracy.Returns the heading, in degrees from due north, reported by the browser, based on previous calls to get the user's position, ornull
if the browser did not report a heading.double
Returns the decimal latitude reported by the browser.double
Returns the decimal longitude reported by the browser.getSpeed()
Returns the speed, in meters/second, reported by the browser, based on previous calls to get the user's position, ornull
if the browser did not report a speed.
-
Method Details
-
getAccuracy
double getAccuracy()Returns the estimated accuracy reported by the browser, in meters. -
getAltitude
Double getAltitude()Returns the altitude reported by the browser, in meters, above the reference ellipsoid, ornull
if the browser did not report an altitude. -
getAltitudeAccuracy
Double getAltitudeAccuracy()Returns the estimated accuracy of the altitude reported by the browser, in meters, ornull
if the browser did not report an accuracy. -
getHeading
Double getHeading()Returns the heading, in degrees from due north, reported by the browser, based on previous calls to get the user's position, ornull
if the browser did not report a heading. -
getLatitude
double getLatitude()Returns the decimal latitude reported by the browser. -
getLongitude
double getLongitude()Returns the decimal longitude reported by the browser. -
getSpeed
Double getSpeed()Returns the speed, in meters/second, reported by the browser, based on previous calls to get the user's position, ornull
if the browser did not report a speed.
-