Class H3Core
public class H3Core extends Object
This class is thread safe and can be used as a singleton.
Any function in this class may throw H3Exception
.
-
Method Summary
Modifier and Type Method Description boolean
areNeighborCells(long a, long b)
Returnstrue
if the two indexes are neighbors.boolean
areNeighborCells(String a, String b)
Returnstrue
if the two indexes are neighbors.List<List<List<LatLng>>>
cellAddressesToMultiPolygon(Collection<String> h3Addresses, boolean geoJson)
Create polygons from a set of contiguous indexesdouble
cellArea(long h3, AreaUnit unit)
Calculates the area of the given H3 cell.double
cellArea(String h3Address, AreaUnit unit)
Calculates the area of the given H3 cell.long
cellsToDirectedEdge(long a, long b)
Returns a unidirectional edge index representinga
towardsb
.String
cellsToDirectedEdge(String a, String b)
Returns a unidirectional edge index representinga
towardsb
.List<List<List<LatLng>>>
cellsToMultiPolygon(Collection<Long> h3, boolean geoJson)
Create polygons from a set of contiguous indexesList<LatLng>
cellToBoundary(long h3)
Find the cell boundary in latitude, longitude (degrees) coordinates for the cellList<LatLng>
cellToBoundary(String h3Address)
Find the cell boundary in latitude, longitude (degrees) coordinates for the celllong
cellToCenterChild(long h3, int childRes)
Returns the center child at the given resolution.String
cellToCenterChild(String h3, int childRes)
Returns the center child at the given resolution.long
cellToChildPos(long child, int parentRes)
Returns the position of the child cell within an ordered list of all children of the cell's parent at the specified resolution parentRes.long
cellToChildPos(String childAddress, int parentRes)
Returns the position of the child cell within an ordered list of all children of the cell's parent at the specified resolution parentRes.List<Long>
cellToChildren(long h3, int childRes)
Provides the children of the index at the given resolution.List<String>
cellToChildren(String h3Address, int childRes)
Provides the children of the index at the given resolution.long
cellToChildrenSize(long cell, int childRes)
Returns the number of children the cell index has at the given resolution.long
cellToChildrenSize(String cellAddress, int childRes)
Returns the number of children the cell index has at the given resolution.LatLng
cellToLatLng(long h3)
Find the latitude, longitude (both in degrees) center point of the cell.LatLng
cellToLatLng(String h3Address)
Find the latitude, longitude (degrees) center point of the cell.CoordIJ
cellToLocalIj(long origin, long h3)
Convertsh3
to IJ coordinates in a local coordinate space defined byorigin
.CoordIJ
cellToLocalIj(String originAddress, String h3Address)
Convertsh3Address
to IJ coordinates in a local coordinate space defined byoriginAddress
.long
cellToParent(long h3, int res)
Returns the parent of the index at the given resolution.String
cellToParentAddress(String h3Address, int res)
Returns the parent of the index at the given resolution.long
cellToVertex(long h3, int vertexNum)
String
cellToVertex(String h3Address, int vertexNum)
List<Long>
cellToVertexes(long h3)
List<String>
cellToVertexes(String h3Address)
long
childPosToCell(long childPos, long parent, int childRes)
Returns the child cell at a given position within an ordered list of all children of parent at the specified resolution childRes.String
childPosToCell(long childPos, String parentAddress, int childRes)
Returns the child cell at a given position within an ordered list of all children of parent at the specified resolution childRes.List<String>
compactCellAddresses(Collection<String> h3Addresses)
Returns a compacted set of indexes, at possibly coarser resolutions.List<Long>
compactCells(Collection<Long> h3)
Returns a compacted set of indexes, at possibly coarser resolutions.List<LatLng>
directedEdgeToBoundary(long h3)
Returns a list of coordinates representing the given edge.List<LatLng>
directedEdgeToBoundary(String h3)
Returns a list of coordinates representing the given edge.List<Long>
directedEdgeToCells(long h3)
Returns the origin and destination indexes (in that order) of the given unidirectional edge.List<String>
directedEdgeToCells(String h3)
Returns the origin and destination indexes (in that order) of the given unidirectional edge.double
edgeLength(long edge, LengthUnit unit)
Calculate the edge length of the given H3 edge.double
edgeLength(String edgeAddress, LengthUnit unit)
Calculate the edge length of the given H3 edge.int
getBaseCellNumber(long h3)
Returns the base cell number for this index.int
getBaseCellNumber(String h3Address)
Returns the base cell number for this index.long
getDirectedEdgeDestination(long h3)
Returns the destination index of the given unidirectional edge.String
getDirectedEdgeDestination(String h3)
Returns the destination index of the given unidirectional edge.long
getDirectedEdgeOrigin(long h3)
Returns the origin index of the given unidirectional edge.String
getDirectedEdgeOrigin(String h3)
Returns the origin index of the given unidirectional edge.double
getHexagonAreaAvg(int res, AreaUnit unit)
Returns the average area inunit
for indexes at resolutionres
.double
getHexagonEdgeLengthAvg(int res, LengthUnit unit)
Returns the average edge length inunit
for indexes at resolutionres
.Collection<Integer>
getIcosahedronFaces(long h3)
Find all icosahedron faces intersected by a given H3 index, represented as integers from 0-19.Collection<Integer>
getIcosahedronFaces(String h3)
Find all icosahedron faces intersected by a given H3 index, represented as integers from 0-19.long
getNumCells(int res)
Returns the number of unique H3 indexes at resolutionres
.Collection<String>
getPentagonAddresses(int res)
Returns a collection of all topologically pentagonal cells at the given resolution.Collection<Long>
getPentagons(int res)
Returns a collection of all topologically pentagonal cells at the given resolution.Collection<String>
getRes0CellAddresses()
Returns a collection of all base cells (H3 indexes are resolution 0).Collection<Long>
getRes0Cells()
Returns a collection of all base cells (H3 indexes are resolution 0).int
getResolution(long h3)
Returns the resolution of the provided indexint
getResolution(String h3Address)
Returns the resolution of the provided indexdouble
greatCircleDistance(LatLng a, LatLng b, LengthUnit unit)
Return the distance along the sphere between two points.List<Long>
gridDisk(long h3, int k)
Neighboring indexes in all directions.List<String>
gridDisk(String h3Address, int k)
Neighboring indexes in all directions.List<List<Long>>
gridDiskDistances(long h3, int k)
Neighboring indexes in all directions, ordered by distance from the origin index.List<List<String>>
gridDiskDistances(String h3Address, int k)
Neighboring indexes in all directions, ordered by distance from the origin index.List<List<Long>>
gridDiskUnsafe(long h3, int k)
Returns in order neighbor traversal.List<List<String>>
gridDiskUnsafe(String h3Address, int k)
Returns in order neighbor traversal.long
gridDistance(long a, long b)
Returns the distance betweena
andb
.long
gridDistance(String a, String b)
Returns the distance betweena
andb
.List<Long>
gridPathCells(long start, long end)
Given two H3 indexes, return the line of indexes between them (inclusive of endpoints).List<String>
gridPathCells(String startAddress, String endAddress)
Given two H3 indexes, return the line of indexes between them (inclusive of endpoints).List<Long>
gridRingUnsafe(long h3, int k)
Returns in order neighbor traversal, of indexes with distance ofk
.List<String>
gridRingUnsafe(String h3Address, int k)
Returns in order neighbor traversal, of indexes with distance ofk
.String
h3ToString(long h3)
Converts fromlong
representation of an index toString
representation.boolean
isPentagon(long h3)
Returnstrue
if this index is one of twelve pentagons per resolution.boolean
isPentagon(String h3Address)
Returnstrue
if this index is one of twelve pentagons per resolution.boolean
isResClassIII(long h3)
Determines if an index is Class III or Class II.boolean
isResClassIII(String h3Address)
Determines if an index is Class III or Class II.boolean
isValidCell(long h3)
Returns true if this is a valid H3 index.boolean
isValidCell(String h3Address)
Returns true if this is a valid H3 index.boolean
isValidDirectedEdge(long h3)
Returnstrue
if the given index is a valid unidirectional edge.boolean
isValidDirectedEdge(String h3)
Returnstrue
if the given index is a valid unidirectional edge.boolean
isValidVertex(long h3)
boolean
isValidVertex(String h3Address)
long
latLngToCell(double lat, double lng, int res)
Find the H3 index of the resolutionres
cell containing the lat/lon (in degrees)String
latLngToCellAddress(double lat, double lng, int res)
Find the H3 index of the resolutionres
cell containing the lat/lon (in degrees)long
localIjToCell(long origin, CoordIJ ij)
Converts the IJ coordinates to an index, using a local IJ coordinate space anchored byorigin
.String
localIjToCell(String originAddress, CoordIJ ij)
Converts the IJ coordinates to an index, using a local IJ coordinate space anchored byorigin
.static H3Core
newInstance()
Create by unpacking the H3 native library to disk and loading it.static H3Core
newInstance(H3CoreLoader.OperatingSystem os, String arch)
Create by unpacking the H3 native library to disk and loading it.static H3Core
newSystemInstance()
Create by using the H3 native library already installed on the system.List<Long>
originToDirectedEdges(long h3)
Returns all unidirectional edges originating from the given index.List<String>
originToDirectedEdges(String h3)
Returns all unidirectional edges originating from the given index.List<String>
polygonToCellAddresses(List<LatLng> points, List<List<LatLng>> holes, int res)
Finds indexes within the given geofence.List<Long>
polygonToCells(List<LatLng> points, List<List<LatLng>> holes, int res)
Finds indexes within the given geofence.long
stringToH3(String h3Address)
Converts fromString
representation of an index tolong
representation.List<String>
uncompactCellAddresses(Collection<String> h3Addresses, int res)
Uncompacts all the given indexes to resolutionres
.List<Long>
uncompactCells(Collection<Long> h3, int res)
Uncompacts all the given indexes to resolutionres
.LatLng
vertexToLatLng(long h3)
LatLng
vertexToLatLng(String h3Address)
-
Method Details
-
newInstance
Create by unpacking the H3 native library to disk and loading it. The library will attempt to detect the correct operating system and architecture of native library to unpack.- Throws:
SecurityException
- Loading the library was not allowed by the SecurityManager.UnsatisfiedLinkError
- The library could not be loadedIOException
- The library could not be extracted to disk.
-
newInstance
Create by unpacking the H3 native library to disk and loading it. The library will attempt to extract the native library matching the given arguments to disk.- Throws:
SecurityException
- Loading the library was not allowed by the SecurityManager.UnsatisfiedLinkError
- The library could not be loadedIOException
- The library could not be extracted to disk.
-
newSystemInstance
Create by using the H3 native library already installed on the system.- Throws:
SecurityException
- The library could not be loadedUnsatisfiedLinkError
- The library could not be loaded
-
isValidCell
public boolean isValidCell(long h3)Returns true if this is a valid H3 index. -
isValidCell
Returns true if this is a valid H3 index. -
getBaseCellNumber
public int getBaseCellNumber(long h3)Returns the base cell number for this index. -
getBaseCellNumber
Returns the base cell number for this index. -
isPentagon
public boolean isPentagon(long h3)Returnstrue
if this index is one of twelve pentagons per resolution. -
isPentagon
Returnstrue
if this index is one of twelve pentagons per resolution. -
latLngToCell
public long latLngToCell(double lat, double lng, int res)Find the H3 index of the resolutionres
cell containing the lat/lon (in degrees)- Parameters:
lat
- Latitude in degrees.lng
- Longitude in degrees.res
- Resolution, 0 <= res <= 15- Returns:
- The H3 index.
-
latLngToCellAddress
Find the H3 index of the resolutionres
cell containing the lat/lon (in degrees)- Parameters:
lat
- Latitude in degrees.lng
- Longitude in degrees.res
- Resolution, 0 <= res <= 15- Returns:
- The H3 index.
-
cellToLatLng
Find the latitude, longitude (both in degrees) center point of the cell. -
cellToLatLng
Find the latitude, longitude (degrees) center point of the cell. -
cellToBoundary
Find the cell boundary in latitude, longitude (degrees) coordinates for the cell -
cellToBoundary
Find the cell boundary in latitude, longitude (degrees) coordinates for the cell -
gridDisk
Neighboring indexes in all directions.- Parameters:
h3Address
- Origin indexk
- Number of rings around the origin
-
gridDisk
Neighboring indexes in all directions.- Parameters:
h3
- Origin indexk
- Number of rings around the origin
-
gridDiskDistances
Neighboring indexes in all directions, ordered by distance from the origin index.- Parameters:
h3Address
- Origin indexk
- Number of rings around the origin- Returns:
- A list of rings, each of which is a list of addresses. The rings are in order from closest to origin to farthest.
-
gridDiskDistances
Neighboring indexes in all directions, ordered by distance from the origin index.- Parameters:
h3
- Origin indexk
- Number of rings around the origin- Returns:
- A list of rings, each of which is a list of addresses. The rings are in order from closest to origin to farthest.
-
gridDiskUnsafe
Returns in order neighbor traversal.- Parameters:
h3Address
- Origin hexagon indexk
- Number of rings around the origin- Returns:
- A list of rings, each of which is a list of addresses. The rings are in order from closest to origin to farthest.
-
gridDiskUnsafe
Returns in order neighbor traversal.- Parameters:
h3
- Origin hexagon indexk
- Number of rings around the origin- Returns:
- A list of rings, each of which is a list of addresses. The rings are in order from closest to origin to farthest.
-
gridRingUnsafe
Returns in order neighbor traversal, of indexes with distance ofk
.- Parameters:
h3Address
- Origin indexk
- Number of rings around the origin- Returns:
- All indexes
k
away from the origin
-
gridRingUnsafe
Returns in order neighbor traversal, of indexes with distance ofk
.- Parameters:
h3
- Origin indexk
- Number of rings around the origin- Returns:
- All indexes
k
away from the origin
-
gridDistance
Returns the distance betweena
andb
. This is the grid distance, or distance expressed in number of H3 cells.In some cases H3 cannot compute the distance between two indexes. This can happen because:
- The indexes are not comparable (difference resolutions, etc)
- The distance is greater than the H3 core library supports
- The H3 library does not support finding the distance between the two cells, because of pentagonal distortion.
- Parameters:
a
- An H3 indexb
- Another H3 index- Returns:
- Distance between the two in grid cells
-
gridDistance
public long gridDistance(long a, long b)Returns the distance betweena
andb
. This is the grid distance, or distance expressed in number of H3 cells.In some cases H3 cannot compute the distance between two indexes. This can happen because:
- The indexes are not comparable (difference resolutions, etc)
- The distance is greater than the H3 core library supports
- The H3 library does not support finding the distance between the two cells, because of pentagonal distortion.
- Parameters:
a
- An H3 indexb
- Another H3 index- Returns:
- Distance between the two in grid cells
-
cellToLocalIj
Convertsh3
to IJ coordinates in a local coordinate space defined byorigin
.The local IJ coordinate space may have deleted regions and warping due to pentagon distortion. IJ coordinates are only comparable if they came from the same origin.
This function is experimental, and its output is not guaranteed to be compatible across different versions of H3.
- Parameters:
origin
- Anchoring index for the local coordinate space.h3
- Index to find the coordinates of.- Returns:
- Coordinates for
h3
in the local coordinate space.
-
cellToLocalIj
Convertsh3Address
to IJ coordinates in a local coordinate space defined byoriginAddress
.The local IJ coordinate space may have deleted regions and warping due to pentagon distortion. IJ coordinates are only comparable if they came from the same origin.
This function is experimental, and its output is not guaranteed to be compatible across different versions of H3.
- Parameters:
originAddress
- Anchoring index for the local coordinate space.h3Address
- Index to find the coordinates of.- Returns:
- Coordinates for
h3
in the local coordinate space.
-
localIjToCell
Converts the IJ coordinates to an index, using a local IJ coordinate space anchored byorigin
.The local IJ coordinate space may have deleted regions and warping due to pentagon distortion. IJ coordinates are only comparable if they came from the same origin.
This function is experimental, and its output is not guaranteed to be compatible across different versions of H3.
- Parameters:
origin
- Anchoring index for the local coordinate space.ij
- Coordinates in the local IJ coordinate space.- Returns:
- Index represented by
ij
-
localIjToCell
Converts the IJ coordinates to an index, using a local IJ coordinate space anchored byorigin
.The local IJ coordinate space may have deleted regions and warping due to pentagon distortion. IJ coordinates are only comparable if they came from the same origin.
This function is experimental, and its output is not guaranteed to be compatible across different versions of H3.
- Parameters:
originAddress
- Anchoring index for the local coordinate space.ij
- Coordinates in the local IJ coordinate space.- Returns:
- Index represented by
ij
-
gridPathCells
Given two H3 indexes, return the line of indexes between them (inclusive of endpoints).This function may fail to find the line between two indexes, for example if they are very far apart. It may also fail when finding distances for indexes on opposite sides of a pentagon.
Notes:
- The specific output of this function should not be considered stable across library versions. The only guarantees the library provides are that the line length will be `h3Distance(start, end) + 1` and that every index in the line will be a neighbor of the preceding index.
- Lines are drawn in grid space, and may not correspond exactly to either Cartesian lines or great arcs.
- Parameters:
startAddress
- Start index of the lineendAddress
- End index of the line- Returns:
- Indexes making up the line.
-
gridPathCells
Given two H3 indexes, return the line of indexes between them (inclusive of endpoints).This function may fail to find the line between two indexes, for example if they are very far apart. It may also fail when finding distances for indexes on opposite sides of a pentagon.
Notes:
- The specific output of this function should not be considered stable across library versions. The only guarantees the library provides are that the line length will be `h3Distance(start, end) + 1` and that every index in the line will be a neighbor of the preceding index.
- Lines are drawn in grid space, and may not correspond exactly to either Cartesian lines or great arcs.
- Parameters:
start
- Start index of the lineend
- End index of the line- Returns:
- Indexes making up the line.
-
polygonToCellAddresses
Finds indexes within the given geofence.- Parameters:
points
- Outline geofenceholes
- Geofences of any internal holesres
- Resolution of the desired indexes
-
polygonToCells
Finds indexes within the given geofence.- Parameters:
points
- Outline geofenceholes
- Geofences of any internal holesres
- Resolution of the desired indexes- Throws:
IllegalArgumentException
- Invalid resolution
-
cellAddressesToMultiPolygon
public List<List<List<LatLng>>> cellAddressesToMultiPolygon(Collection<String> h3Addresses, boolean geoJson)Create polygons from a set of contiguous indexes -
cellsToMultiPolygon
Create polygons from a set of contiguous indexes -
getResolution
Returns the resolution of the provided index -
getResolution
public int getResolution(long h3)Returns the resolution of the provided index -
cellToParent
public long cellToParent(long h3, int res)Returns the parent of the index at the given resolution.- Parameters:
h3
- H3 index.res
- Resolution of the parent,0 <= res <= h3GetResolution(h3)
- Throws:
IllegalArgumentException
-res
is not between 0 and the resolution ofh3
, inclusive.
-
cellToParentAddress
Returns the parent of the index at the given resolution.- Parameters:
h3Address
- H3 index.res
- Resolution of the parent,0 <= res <= h3GetResolution(h3)
-
cellToChildren
Provides the children of the index at the given resolution.- Parameters:
childRes
- Resolution of the children
-
cellToChildren
Provides the children of the index at the given resolution.- Parameters:
h3
- H3 index.childRes
- Resolution of the children- Throws:
IllegalArgumentException
- Invalid resolution
-
cellToCenterChild
Returns the center child at the given resolution.- Parameters:
h3
- Parent H3 indexchildRes
- Resolution of the child- Throws:
IllegalArgumentException
- Invalid resolution (e.g. coarser than the parent)
-
cellToChildrenSize
public long cellToChildrenSize(long cell, int childRes)Returns the number of children the cell index has at the given resolution. -
cellToChildrenSize
Returns the number of children the cell index has at the given resolution. -
cellToCenterChild
public long cellToCenterChild(long h3, int childRes)Returns the center child at the given resolution.- Parameters:
h3
- Parent H3 indexchildRes
- Resolution of the child- Throws:
IllegalArgumentException
- Invalid resolution (e.g. coarser than the parent)
-
isResClassIII
Determines if an index is Class III or Class II.- Returns:
true
if the index is Class III
-
isResClassIII
public boolean isResClassIII(long h3)Determines if an index is Class III or Class II.- Parameters:
h3
- H3 index.- Returns:
true
if the index is Class III
-
compactCellAddresses
Returns a compacted set of indexes, at possibly coarser resolutions. -
compactCells
Returns a compacted set of indexes, at possibly coarser resolutions. -
uncompactCellAddresses
Uncompacts all the given indexes to resolutionres
. -
uncompactCells
Uncompacts all the given indexes to resolutionres
. -
h3ToString
Converts fromlong
representation of an index toString
representation. -
stringToH3
Converts fromString
representation of an index tolong
representation. -
cellArea
Calculates the area of the given H3 cell.- Parameters:
h3Address
- Cell to find the area of.unit
- Unit to calculate the area in.- Returns:
- Cell area in the given units.
-
cellArea
Calculates the area of the given H3 cell.- Parameters:
h3
- Cell to find the area of.unit
- Unit to calculate the area in.- Returns:
- Cell area in the given units.
-
greatCircleDistance
Return the distance along the sphere between two points.- Parameters:
a
- First pointb
- Second pointunit
- Unit to return the distance in.- Returns:
- Distance from point
a
to pointb
-
edgeLength
Calculate the edge length of the given H3 edge.- Parameters:
edgeAddress
- Edge to find the edge length of.unit
- Unit of measure to use.- Returns:
- Length of the given edge.
-
edgeLength
Calculate the edge length of the given H3 edge.- Parameters:
edge
- Edge to find the edge length of.unit
- Unit of measure to use.- Returns:
- Length of the given edge.
-
getHexagonAreaAvg
Returns the average area inunit
for indexes at resolutionres
.- Throws:
IllegalArgumentException
- Invalid parameter value
-
getHexagonEdgeLengthAvg
Returns the average edge length inunit
for indexes at resolutionres
.- Throws:
IllegalArgumentException
- Invalid parameter value
-
getNumCells
public long getNumCells(int res)Returns the number of unique H3 indexes at resolutionres
.- Throws:
IllegalArgumentException
- Invalid resolution
-
getRes0CellAddresses
Returns a collection of all base cells (H3 indexes are resolution 0). -
getRes0Cells
Returns a collection of all base cells (H3 indexes are resolution 0). -
getPentagonAddresses
Returns a collection of all topologically pentagonal cells at the given resolution.- Throws:
IllegalArgumentException
- Invalid resolution.
-
getPentagons
Returns a collection of all topologically pentagonal cells at the given resolution.- Throws:
IllegalArgumentException
- Invalid resolution.
-
areNeighborCells
public boolean areNeighborCells(long a, long b)Returnstrue
if the two indexes are neighbors. -
areNeighborCells
Returnstrue
if the two indexes are neighbors. -
cellsToDirectedEdge
public long cellsToDirectedEdge(long a, long b)Returns a unidirectional edge index representinga
towardsb
.- Throws:
IllegalArgumentException
- The indexes are not neighbors.
-
cellsToDirectedEdge
Returns a unidirectional edge index representinga
towardsb
.- Throws:
IllegalArgumentException
- The indexes are not neighbors.
-
isValidDirectedEdge
public boolean isValidDirectedEdge(long h3)Returnstrue
if the given index is a valid unidirectional edge. -
isValidDirectedEdge
Returnstrue
if the given index is a valid unidirectional edge. -
getDirectedEdgeOrigin
public long getDirectedEdgeOrigin(long h3)Returns the origin index of the given unidirectional edge. -
getDirectedEdgeOrigin
Returns the origin index of the given unidirectional edge. -
getDirectedEdgeDestination
public long getDirectedEdgeDestination(long h3)Returns the destination index of the given unidirectional edge. -
getDirectedEdgeDestination
Returns the destination index of the given unidirectional edge. -
directedEdgeToCells
Returns the origin and destination indexes (in that order) of the given unidirectional edge. -
directedEdgeToCells
Returns the origin and destination indexes (in that order) of the given unidirectional edge. -
originToDirectedEdges
Returns all unidirectional edges originating from the given index. -
originToDirectedEdges
Returns all unidirectional edges originating from the given index. -
directedEdgeToBoundary
Returns a list of coordinates representing the given edge. -
directedEdgeToBoundary
Returns a list of coordinates representing the given edge. -
getIcosahedronFaces
Find all icosahedron faces intersected by a given H3 index, represented as integers from 0-19.- Parameters:
h3
- Index to find icosahedron faces for.- Returns:
- A collection of faces intersected by the index.
-
getIcosahedronFaces
Find all icosahedron faces intersected by a given H3 index, represented as integers from 0-19.- Parameters:
h3
- Index to find icosahedron faces for.- Returns:
- A collection of faces intersected by the index.
-
cellToVertex
public long cellToVertex(long h3, int vertexNum) -
cellToVertex
-
cellToVertexes
-
cellToVertexes
-
vertexToLatLng
-
vertexToLatLng
-
isValidVertex
public boolean isValidVertex(long h3) -
isValidVertex
-
cellToChildPos
Returns the position of the child cell within an ordered list of all children of the cell's parent at the specified resolution parentRes. -
cellToChildPos
public long cellToChildPos(long child, int parentRes)Returns the position of the child cell within an ordered list of all children of the cell's parent at the specified resolution parentRes. -
childPosToCell
public long childPosToCell(long childPos, long parent, int childRes)Returns the child cell at a given position within an ordered list of all children of parent at the specified resolution childRes. -
childPosToCell
Returns the child cell at a given position within an ordered list of all children of parent at the specified resolution childRes.
-