Class RTreeUtils
- java.lang.Object
-
- org.apache.druid.collections.spatial.RTreeUtils
-
public class RTreeUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description RTreeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublecalculateHaversineDistance(double lat1, double lon1, double lat2, double lon2)Returns distance between two geo coordinates in meters according to https://en.wikipedia.org/wiki/Haversine_formulastatic voidenclose(Node[] nodes)static doublegetEnclosingArea(Node a, Node b)static doublegetExpansionCost(Node node, Point point)
-
-
-
Method Detail
-
enclose
public static void enclose(Node[] nodes)
-
calculateHaversineDistance
public static double calculateHaversineDistance(double lat1, double lon1, double lat2, double lon2)Returns distance between two geo coordinates in meters according to https://en.wikipedia.org/wiki/Haversine_formula
-
-