Class OrthodromicDistance
- java.lang.Object
-
- org.aksw.limes.core.measures.mapper.pointsets.OrthodromicDistance
-
public class OrthodromicDistance extends Object
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description static doubleR
-
Constructor Summary
Constructors Constructor Description OrthodromicDistance()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetDistance(double lat1, double long1, double lat2, double long2)Computes the distance between two points on earth Input latitudes/longitudes are in Radiansstatic doublegetDistanceInDegrees(double lat1, double long1, double lat2, double long2)Computes the distance between two points on earth Input latitudes/longitudes by converting their latitude and longitude into radians.static doublegetDistanceInDegrees(Point x, Point y)Computes and returns distance between two points.
-
-
-
Method Detail
-
getDistanceInDegrees
public static double getDistanceInDegrees(Point x, Point y)
Computes and returns distance between two points.- Parameters:
x- , first pointy- , second point- Returns:
- the distance between x and y
-
getDistanceInDegrees
public static double getDistanceInDegrees(double lat1, double long1, double lat2, double long2)Computes the distance between two points on earth Input latitudes/longitudes by converting their latitude and longitude into radians.- Parameters:
lat1- , Latitude of first pointlong1- , Longitude of first pointlat2- , Latitude of second pointlong2- , Longitude of second point- Returns:
- Distance between both points
-
getDistance
public static double getDistance(double lat1, double long1, double lat2, double long2)Computes the distance between two points on earth Input latitudes/longitudes are in Radians- Parameters:
lat1- , Latitude of first pointlong1- , Longitude of first pointlat2- , Latitude of second pointlong2- , Longitude of second point- Returns:
- Distance between both points
-
-