H3_POINT_TO_CELL_STRING

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns 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

NameRequiredDescription
geography_pointrequiredA GEOGRAPHY object that represents a Point.
target_resolutionrequiredAn 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.

See also

Referenced by