H3_POINT_TO_CELL_STRING
functionsupportedCore SQL functionsReturns the hexadecimal value of an H3 cell ID for a Point (specified by a GEOGRAPHY object) at a given resolution.
Syntax
H3_POINT_TO_CELL_STRING( <geography_point> , <target_resolution> )
Parameters
| Name | Required | Description |
|---|---|---|
geography_point | required | A GEOGRAPHY object that represents a Point. |
target_resolution | required | An INTEGER between 0 and 15 (inclusive) that specifies the H3 resolution that you want to use for the returned H3 cell. Specifying any other INTEGER value results in an error. |
Returns
Returns a VARCHAR value that corresponds to the hexadecimal H3 cell ID for the given location and resolution.