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
Constructors Modifier Constructor Description protectedCoordinatesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAccuracy()Returns the estimated accuracy reported by the browser, in meters.java.lang.DoublegetAltitude()Returns the altitude reported by the browser, in meters, above the reference ellipsoid, ornullif the browser did not report an altitude.java.lang.DoublegetAltitudeAccuracy()Returns the estimated accuracy of the altitude reported by the browser, in meters, ornullif the browser did not report an accuracy.java.lang.DoublegetHeading()Returns the heading, in degrees from due north, reported by the browser, based on previous calls to get the user's position, ornullif the browser did not report a heading.doublegetLatitude()Returns the decimal latitude reported by the browser.doublegetLongitude()Returns the decimal longitude reported by the browser.java.lang.DoublegetSpeed()Returns the speed, in meters/second, reported by the browser, based on previous calls to get the user's position, ornullif 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
-
-
-
-
Method Detail
-
getAccuracy
public final double getAccuracy()
Description copied from interface:Position.CoordinatesReturns the estimated accuracy reported by the browser, in meters.- Specified by:
getAccuracyin interfacePosition.Coordinates
-
getAltitude
public final java.lang.Double getAltitude()
Description copied from interface:Position.CoordinatesReturns the altitude reported by the browser, in meters, above the reference ellipsoid, ornullif the browser did not report an altitude.- Specified by:
getAltitudein interfacePosition.Coordinates
-
getAltitudeAccuracy
public final java.lang.Double getAltitudeAccuracy()
Description copied from interface:Position.CoordinatesReturns the estimated accuracy of the altitude reported by the browser, in meters, ornullif the browser did not report an accuracy.- Specified by:
getAltitudeAccuracyin interfacePosition.Coordinates
-
getHeading
public final java.lang.Double getHeading()
Description copied from interface:Position.CoordinatesReturns the heading, in degrees from due north, reported by the browser, based on previous calls to get the user's position, ornullif the browser did not report a heading.- Specified by:
getHeadingin interfacePosition.Coordinates
-
getLatitude
public final double getLatitude()
Description copied from interface:Position.CoordinatesReturns the decimal latitude reported by the browser.- Specified by:
getLatitudein interfacePosition.Coordinates
-
getLongitude
public final double getLongitude()
Description copied from interface:Position.CoordinatesReturns the decimal longitude reported by the browser.- Specified by:
getLongitudein interfacePosition.Coordinates
-
getSpeed
public final java.lang.Double getSpeed()
Description copied from interface:Position.CoordinatesReturns the speed, in meters/second, reported by the browser, based on previous calls to get the user's position, ornullif the browser did not report a speed.- Specified by:
getSpeedin interfacePosition.Coordinates
-
-