Class MiscellaneousFunctions

java.lang.Object
com.foursquare.presto.h3.MiscellaneousFunctions

public final class MiscellaneousFunctions
extends Object
Wraps https://h3geo.org/docs/api/misc
  • Constructor Details

    • MiscellaneousFunctions

      public MiscellaneousFunctions()
  • Method Details

    • getHexagonAreaAvg

      public static Double getHexagonAreaAvg​(long res, io.airlift.slice.Slice unit)
    • cellArea

      public static Double cellArea​(long cell, io.airlift.slice.Slice unit)
    • getHexagonEdgeLengthAvg

      public static Double getHexagonEdgeLengthAvg​(long res, io.airlift.slice.Slice unit)
    • edgeLength

      public static Double edgeLength​(long edge, io.airlift.slice.Slice unit)
    • greatCircleDistance

      public static Double greatCircleDistance​(double lat1, double lng1, double lat2, double lng2, io.airlift.slice.Slice unit)
    • getNumCells

      public static Long getNumCells​(long res)
    • getRes0Cells

      public static com.facebook.presto.common.block.Block getRes0Cells()
    • getPentagons

      public static com.facebook.presto.common.block.Block getPentagons​(long res)