Package com.foursquare.presto.h3
Class IndexingFunctions
java.lang.Object
com.foursquare.presto.h3.IndexingFunctions
public final class IndexingFunctions extends Object
Wraps https://h3geo.org/docs/api/indexing
-
Constructor Summary
Constructors Constructor Description IndexingFunctions()
-
Method Summary
Modifier and Type Method Description static io.airlift.slice.Slice
cellToBoundary(long h3)
WrapsH3Core.cellToBoundary(long)
.static io.airlift.slice.Slice
cellToLatLng(long h3)
WrapsH3Core.cellToLatLng(long)
.static Long
latLngToCell(double lat, double lng, long res)
Function wrappingH3Core.latLngToCell(double, double, int)
static Long
latLngToCell(io.airlift.slice.Slice pointSlice, long res)
Function wrappingH3Core.latLngToCell(double, double, int)
-
Constructor Details
-
IndexingFunctions
public IndexingFunctions()
-
-
Method Details
-
latLngToCell
Function wrappingH3Core.latLngToCell(double, double, int)
-
latLngToCell
Function wrappingH3Core.latLngToCell(double, double, int)
-
cellToLatLng
public static io.airlift.slice.Slice cellToLatLng(long h3)WrapsH3Core.cellToLatLng(long)
. Produces a row of latitude, longitude degrees. -
cellToBoundary
public static io.airlift.slice.Slice cellToBoundary(long h3)WrapsH3Core.cellToBoundary(long)
. Produces a row of latitude, longitude degrees interleaved as (lat0, lng0, lat1, lng1, ..., latN, lngN).
-