Class IndexingFunctions

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

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

    • IndexingFunctions

      public IndexingFunctions()
  • Method Details

    • latLngToCell

      public static Long latLngToCell​(double lat, double lng, long res)
      Function wrapping H3Core.latLngToCell(double, double, int)
    • latLngToCell

      public static Long latLngToCell​(io.airlift.slice.Slice pointSlice, long res)
      Function wrapping H3Core.latLngToCell(double, double, int)
    • cellToLatLng

      public static io.airlift.slice.Slice cellToLatLng​(long h3)
      Wraps H3Core.cellToLatLng(long). Produces a row of latitude, longitude degrees.
    • cellToBoundary

      public static io.airlift.slice.Slice cellToBoundary​(long h3)
      Wraps H3Core.cellToBoundary(long). Produces a row of latitude, longitude degrees interleaved as (lat0, lng0, lat1, lng1, ..., latN, lngN).