Skip to main content
Compute the H3 grid distance between two H3 cells. If H3 cannot compute the distance, for example because the cells are too far apart, Sedona estimates the shortest path and returns its length. SQL reference: ST_H3CellDistance

Signature

Parameters

Union[ColumnOrName, int]
required
First H3 cell ID.
Union[ColumnOrName, int]
required
Second H3 cell ID.

Returns

Column
Number of grid steps between the cells.