public class GeoLocationUtils extends Object
| Constructor and Description |
|---|
GeoLocationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getGeodesicDistance(GeoLocation location,
GeoLocation destination)
Calculate geodesic
distance in Meters between this Object and a second Object passed to
this method using Thaddeus Vincenty's
inverse formula See T Vincenty, "Direct and Inverse
Solutions of Geodesics on the Ellipsoid with application of nested
equations", Survey Review, vol XXII no 176, 1975.
|
static double |
getGeodesicFinalBearing(GeoLocation location,
GeoLocation destination)
Calculate the final geodesic bearing
between this Object and a second Object passed to this method using Thaddeus Vincenty's
inverse formula See T Vincenty, "Direct and Inverse
Solutions of Geodesics on the Ellipsoid with application of nested
equations", Survey Review, vol XXII no 176, 1975.
|
static double |
getGeodesicInitialBearing(GeoLocation location,
GeoLocation destination)
Calculate the initial geodesic bearing
between this Object and a second Object passed to this method using Thaddeus Vincenty's
inverse formula See T Vincenty, "Direct and Inverse
Solutions of Geodesics on the Ellipsoid with application of nested
equations", Survey Review, vol XXII no 176, 1975.
|
static double |
getRhumbLineBearing(GeoLocation location,
GeoLocation destination)
Returns the rhumb line
bearing from the current location to the GeoLocation passed in.
|
static double |
getRhumbLineDistance(GeoLocation location,
GeoLocation destination)
Returns the rhumb line
distance from the current location to the GeoLocation passed in.
|
public GeoLocationUtils()
public static double getGeodesicInitialBearing(GeoLocation location, GeoLocation destination)
location - the destination locationpublic static double getGeodesicFinalBearing(GeoLocation location, GeoLocation destination)
location - the destination locationpublic static double getGeodesicDistance(GeoLocation location, GeoLocation destination)
location - the destination locationpublic static double getRhumbLineBearing(GeoLocation location, GeoLocation destination)
location - destination locationpublic static double getRhumbLineDistance(GeoLocation location, GeoLocation destination)
location - the destination locationCopyright © 2004 - 2011 Eliyahu Hershfeld. All Rights Reserved. Released under the LGPL 2.1 license