Skip to content

H3_CELL_RESOLUTION ​

Returns the resolution of an H3 cell.

Syntax ​

sql
H3_CELL_RESOLUTION(<cell>)

Arguments ​

  • <cell>: A BIGINT representing the H3 cell ID.

Returns ​

An INTEGER between 0-15 (inclusive) representing the resolution of the input H3 cell.

Example ​

sql
SELECT h3_cell_resolution(h3_point_to_cell('POINT(0 0)'::geography, 3));
-- 3