Package 

Class LocationCompute

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Float distanceTo(Location dest) Returns the approximate distance in meters between this location and the given location.
      final Float bearingTo(Location dest) Returns the approximate initial bearing in degrees East of true North when traveling along the shortest path between this location and the given location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocationCompute

        LocationCompute(Location loc)
    • Method Detail

      • distanceTo

         final Float distanceTo(Location dest)

        Returns the approximate distance in meters between this location and the given location. Distance is defined using the WGS84 ellipsoid.

        Parameters:
        dest - the destination location
      • bearingTo

         final Float bearingTo(Location dest)

        Returns the approximate initial bearing in degrees East of true North when traveling along the shortest path between this location and the given location. The shortest path is defined using the WGS84 ellipsoid. Locations that are (nearly) antipodal may produce meaningless results.

        Parameters:
        dest - the destination location