Skip to main content
Returns the parent H3 cell at the requested resolution. Use this function to group finer-resolution H3 cells into coarser cells. The requested resolution must be between 0 and the input cell’s resolution, inclusive. Requesting the input cell’s own resolution returns that cell unchanged. An out-of-range resolution raises an error.

Signatures

Parameters

Long
required
The input H3 cell ID. You can obtain cell IDs with ST_H3CellIDs.
Integer
required
The resolution of the parent cell, from 0 through the input cell’s resolution.

Return type

The parent H3 cell ID.

Example

Find the resolution-5 parent of a resolution-8 cell:
Requesting resolution 8 returns the original cell: