Class RTreeUtils
java.lang.Object
org.apache.druid.collections.spatial.RTreeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 voidstatic doublegetEnclosingArea(Node a, Node b) static doublegetExpansionCost(Node node, Point point)
-
Constructor Details
-
RTreeUtils
public RTreeUtils()
-
-
Method Details
-
getEnclosingArea
-
getExpansionCost
-
enclose
-
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
-