Live demo
Explore grids and coverage, interactively.
Compare seven grid systems, inspect cells, and draw coverage queries. Use the same CARTO vector basemap in Globe or Flat view.
On this page
Live demo: 7 grid systems, one map
Trifold triangles vs A5 pentagons, H3 hexagons, S2 quads, rHEALPix, HTM (a related octahedral grid) and a plain lon/lat grid. Each layer uses the same land mask and styling. Toggle globe ↔ flat to compare the globe and Mercator projections; click any cell for its address and properties.
Coverage demo: bbox_cover and polyfill
[]
Draw a query shape and Trifold returns stable indexes for the triangular cells that overlap it. The full output is fixed-level cells; compacted output folds complete sibling sets into variable-level parents; ranges are addr64 intervals for subtree scans. Switch on T3 + S2 to cover the same shape with Google S2 cells (computed live in the browser, area-matched level) and compare how much each grid's quadtree compaction folds away.
Land mask: Natural Earth. Comparison layers via pya5, h3-py, s2sphere and rhealpixdggs. Grid comparison and trade-offs · SDK API