Class GeolocationCoordinates
java.lang.Object
org.vaadin.firitin.geolocation.GeolocationCoordinates
The data coming from the browser on geolocation requests
- Author:
- mstahv
-
Constructor Details
-
GeolocationCoordinates
public GeolocationCoordinates()
-
-
Method Details
-
getLatitude
public double getLatitude()- Returns:
- latitude specified in decimal degrees
-
getLongitude
public double getLongitude()- Returns:
- longitude specified in decimal degrees
-
getAccuracy
- Returns:
- the accuracy level of the latitude and longitude coordinates in meters (e.g., 65 meters).
-
getAltitude
- Returns:
- the height of the position, specified in meters above the WGS84 ellipsoid.
-
getAltitudeAccuracy
- Returns:
- the altitude accuracy in meters (e.g., 10 meters).
-
getHeading
- Returns:
- denotes the direction of travel of the hosting device and is specified in degrees, where 0° ≤ heading < 360°, counting clockwise relative to the true north.
-
getSpeed
- Returns:
- the magnitude of the horizontal component of the hosting device's current velocity in meters per second.
-
toString
-