H3_POINT_TO_CELL

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns the INTEGER value of an H3 cell ID for a Point (specified by a GEOGRAPHY object) at a given resolution.

Syntax

H3_POINT_TO_CELL( <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 an INTEGER value that corresponds to the H3 cell ID for the given location and resolution.

See also

Referenced by