public abstract static class Position.Coordinates extends Object
Position.
Mimics closely
W3C's Geolocation API.| Modifier | Constructor and Description |
|---|---|
protected |
Coordinates() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getAccuracy()
The accuracy attribute denotes the accuracy level of the latitude
and longitude coordinates.
|
abstract Double |
getAltitude()
Denotes the height of the position, specified in meters above the ellipsoid.
|
abstract Double |
getAltitudeAccuracy()
The altitude accuracy is specified in meters.
|
abstract Double |
getHeading()
Denotes the direction of travel of the device and
is specified in degrees
counting clockwise relative to the true north.
|
abstract double |
getLatitude() |
abstract double |
getLongitude() |
abstract Double |
getSpeed()
Denotes the magnitude of the horizontal component of the
device's current velocity and is specified in meters per second.
|
public abstract double getLatitude()
public abstract double getLongitude()
public abstract double getAccuracy()
public abstract Double getAltitude()
public abstract Double getAltitudeAccuracy()
public abstract Double getHeading()
null,
if the information is not availablepublic abstract Double getSpeed()
Copyright © 2019 The Apache Software Foundation. All rights reserved.