Class OkkamGeoUtils


  • public class OkkamGeoUtils
    extends Object
    • Method Detail

      • sphericalLawOfCosinesDistance

        public static double sphericalLawOfCosinesDistance​(double lat1,
                                                           double lon1,
                                                           double lat2,
                                                           double lon2)
        Return the distance in meters between the two WGS84 points (lat1,lon1) and (lat2,lon2) using the spherical law of cosines. See https://www.movable-type.co.uk/scripts/latlong.html for details.
        Parameters:
        lat1 - latitude point 1
        lon1 - longitude point 1
        lat2 - latitude point 2
        lon2 - longitude point 2
        Returns:
        the distance in meters between the 2 points