Skip to main content

geo_l11_bucket_index

Function geo_l11_bucket_index 

Source
pub fn geo_l11_bucket_index(cell_id: u64) -> u32
Expand description

Dense level-11 bucket index of cell_id’s L11 ancestor: face ‖ 22 Hilbert bits (25 bits). Defined for any cell at level ≥ 11.

Pure shifts/masks on the u64 layout (face in bits 63–61, two Hilbert bits per level, trailing 1-bit sentinel) — no S2 types, safe for the storage-partition process.