Package com.foursquare.presto.h3
Class MiscellaneousFunctions
java.lang.Object
com.foursquare.presto.h3.MiscellaneousFunctions
public final class MiscellaneousFunctions extends Object
Wraps https://h3geo.org/docs/api/misc
-
Constructor Summary
Constructors Constructor Description MiscellaneousFunctions()
-
Method Summary
Modifier and Type Method Description static Double
cellArea(long cell, io.airlift.slice.Slice unit)
static Double
edgeLength(long edge, io.airlift.slice.Slice unit)
static Double
getHexagonAreaAvg(long res, io.airlift.slice.Slice unit)
static Double
getHexagonEdgeLengthAvg(long res, io.airlift.slice.Slice unit)
static Long
getNumCells(long res)
static com.facebook.presto.common.block.Block
getPentagons(long res)
static com.facebook.presto.common.block.Block
getRes0Cells()
static Double
greatCircleDistance(double lat1, double lng1, double lat2, double lng2, io.airlift.slice.Slice unit)
-
Constructor Details
-
MiscellaneousFunctions
public MiscellaneousFunctions()
-
-
Method Details
-
getHexagonAreaAvg
-
cellArea
-
getHexagonEdgeLengthAvg
-
edgeLength
-
greatCircleDistance
public static Double greatCircleDistance(double lat1, double lng1, double lat2, double lng2, io.airlift.slice.Slice unit) -
getNumCells
-
getRes0Cells
public static com.facebook.presto.common.block.Block getRes0Cells() -
getPentagons
public static com.facebook.presto.common.block.Block getPentagons(long res)
-