Class AbsoluteGeoCoordinate

java.lang.Object
com.here.platform.location.tpeg2.olr.AbsoluteGeoCoordinate
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product, scala.Serializable

public class AbsoluteGeoCoordinate extends Object implements scala.Product, scala.Serializable
An absolute geocoordinate in WGS84 using 24 bit-resolution. The integer (intAngle) representation for the latitude and longitude can be calculated from a double representation in degrees (degrees) by scaling and rounding: intAngle = Math.round(degrees * Math.pow(2, 24) / 360)

In the interest of comparability a specific rounding rule is suggested in the standard: intAngle = 0.5 * Math.signum(degrees) + degrees * Math.pow(2, 24) / 360

The conversion back can be done as follows: degrees = intAngle * 360 / Math.pow(2, 24))

param: longitude The longitude value. param: latitude The latitude value. param: altitude An optional elevation value in meters above sea level.

See Also:
  • Constructor Details

    • AbsoluteGeoCoordinate

      public AbsoluteGeoCoordinate(int longitude, int latitude, scala.Option<Object> altitude)
    • AbsoluteGeoCoordinate

      public AbsoluteGeoCoordinate(int longitude, int latitude, Optional<Object> altitude)
  • Method Details

    • apply

      public abstract static R apply(T1 v1, T2 v2, T3 v3)
    • toString

      public static String toString()
    • longitude

      public int longitude()
    • latitude

      public int latitude()
    • altitude

      public scala.Option<Object> altitude()
    • getLongitude

      public int getLongitude()
    • getLatitude

      public int getLatitude()
    • getAltitude

      public Optional<Object> getAltitude()