H3_GRID_PATH
functionsupportedCore SQL functionsReturns an array of the IDs of the H3 cells that represent the line between two cells. The IDs in the returned ARRAY are INTEGER values (if INTEGER values were provided as the input IDs) or VARCHAR values containing the hexadecimal IDs (if hexadecimal IDs were provided as the input IDs).
Syntax
H3_GRID_PATH( <cell_id_1> , <cell_id_2> )
Parameters
| Name | Required | Description |
|---|---|---|
cell_id_1 | required | An INTEGER that represents the H3 cell ID (index), or a VARCHAR that represents the cell ID in hexadecimal format. |
cell_id_2 | required | An INTEGER that represents the H3 cell ID (index), or a VARCHAR that represents the cell ID in hexadecimal format. |
Returns
Returns an ARRAY of the IDs of H3 cells that represent the line between the cells specified by cell_id_1 and cell_id_2. The IDs are in one of the following formats: - If cell_id_1 and cell_id_2 are INTEGER values, the function returns the IDs as INTEGER values. - If cell_id_1 and cell_id_2 are VARCHAR values containing the hexadecimal IDs, the function returns the hexadecimal IDs as VARCHAR values.
Usage notes
- The two input cell IDs must use the same resolution.