Class AbsoluteGeoCoordinate
java.lang.Object
com.here.platform.location.tpeg2.olr.AbsoluteGeoCoordinate
- All Implemented Interfaces:
Serializable
,scala.Equals
,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 Summary
ConstructorsConstructorDescriptionAbsoluteGeoCoordinate
(int longitude, int latitude, Optional<Object> altitude) AbsoluteGeoCoordinate
(int longitude, int latitude, scala.Option<Object> altitude) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
AbsoluteGeoCoordinate
-
AbsoluteGeoCoordinate
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2, T3 v3) -
toString
-
longitude
public int longitude() -
latitude
public int latitude() -
altitude
-
getLongitude
public int getLongitude() -
getLatitude
public int getLatitude() -
getAltitude
-