H3_TO_PARENT

Returns the parent index containing the h3 at resolution parent_res. Returning 0 means an error occurred.

Analyze Syntax

func.h3_to_parent(h3, parent_res)

Analyze Examples

func.h3_to_parent(635318325446452991, 12)

┌───────────────────────────────────────────┐
 func.h3_to_parent(635318325446452991, 12) 
├───────────────────────────────────────────┤
                        630814725819082751 
└───────────────────────────────────────────┘

SQL Syntax

H3_TO_PARENT(h3, parent_res)

SQL Examples

SELECT H3_TO_PARENT(635318325446452991, 12);

┌──────────────────────────────────────┐
 h3_to_parent(635318325446452991, 12) 
├──────────────────────────────────────┤
                   630814725819082751 
└──────────────────────────────────────┘
Last modified April 22, 2024 at 9:20 PM EST: updating h3 functions (5e2f42f)