Class GeolocationCoordinates


  • public class GeolocationCoordinates
    extends Object
    The data coming from the browser on geolocation requests
    Author:
    mstahv
    • Constructor Detail

      • GeolocationCoordinates

        public GeolocationCoordinates()
    • Method Detail

      • getLatitude

        public double getLatitude()
        Returns:
        latitude specified in decimal degrees
      • getLongitude

        public double getLongitude()
        Returns:
        longitude specified in decimal degrees
      • getAccuracy

        public Double getAccuracy()
        Returns:
        the accuracy level of the latitude and longitude coordinates in meters (e.g., 65 meters).
      • getAltitude

        public Double getAltitude()
        Returns:
        the height of the position, specified in meters above the WGS84 ellipsoid.
      • getAltitudeAccuracy

        public Double getAltitudeAccuracy()
        Returns:
        the altitude accuracy in meters (e.g., 10 meters).
      • getHeading

        public Double 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

        public Double getSpeed()
        Returns:
        the magnitude of the horizontal component of the hosting device's current velocity in meters per second.