Package org.okkam.awesome.utils
Class OkkamGeoUtils
- java.lang.Object
-
- org.okkam.awesome.utils.OkkamGeoUtils
-
public class OkkamGeoUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublesphericalLawOfCosinesDistance(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.
-
-
-
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 1lon1- longitude point 1lat2- latitude point 2lon2- longitude point 2- Returns:
- the distance in meters between the 2 points
-
-