Class PositionImpl.CoordinatesImpl
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.geolocation.client.PositionImpl.CoordinatesImpl
- All Implemented Interfaces:
Position.Coordinates
- Enclosing class:
PositionImpl
static final class PositionImpl.CoordinatesImpl
extends JavaScriptObject
implements Position.Coordinates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal double
Returns the estimated accuracy reported by the browser, in meters.final Double
Returns the altitude reported by the browser, in meters, above the reference ellipsoid, ornull
if the browser did not report an altitude.final Double
Returns the estimated accuracy of the altitude reported by the browser, in meters, ornull
if the browser did not report an accuracy.final Double
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.final double
Returns the decimal latitude reported by the browser.final double
Returns the decimal longitude reported by the browser.final 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.Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
CoordinatesImpl
protected CoordinatesImpl()
-
-
Method Details
-
getAccuracy
public final double getAccuracy()Description copied from interface:Position.Coordinates
Returns the estimated accuracy reported by the browser, in meters.- Specified by:
getAccuracy
in interfacePosition.Coordinates
-
getAltitude
Description copied from interface:Position.Coordinates
Returns the altitude reported by the browser, in meters, above the reference ellipsoid, ornull
if the browser did not report an altitude.- Specified by:
getAltitude
in interfacePosition.Coordinates
-
getAltitudeAccuracy
Description copied from interface:Position.Coordinates
Returns the estimated accuracy of the altitude reported by the browser, in meters, ornull
if the browser did not report an accuracy.- Specified by:
getAltitudeAccuracy
in interfacePosition.Coordinates
-
getHeading
Description copied from interface:Position.Coordinates
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.- Specified by:
getHeading
in interfacePosition.Coordinates
-
getLatitude
public final double getLatitude()Description copied from interface:Position.Coordinates
Returns the decimal latitude reported by the browser.- Specified by:
getLatitude
in interfacePosition.Coordinates
-
getLongitude
public final double getLongitude()Description copied from interface:Position.Coordinates
Returns the decimal longitude reported by the browser.- Specified by:
getLongitude
in interfacePosition.Coordinates
-
getSpeed
Description copied from interface:Position.Coordinates
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.- Specified by:
getSpeed
in interfacePosition.Coordinates
-