S2 region visualizer

The 192 S2 cells that anchor every Axona pub/sub topic and nodeId. Hover the globe to see which cell a coordinate falls in; click a swatch in the legend to highlight all coordinates in that cell.

Under cursor

Cell ID
Lat / Lng
Cell bounds
Approx area

Your location

Lat / Lng
Your cell

Display

Cell index

Click a cell to highlight it on the globe.
Cells are numbered by Hilbert-curve order 0x00 to 0xFF.

What you are seeing

Every Axona nodeId starts with an 8-bit S2 prefix derived from the peer's lat/lng via Google's S2 cube projection. The prefix anchors pub/sub topics: K-closest routing for a publisher-keyed topic naturally finds peers in the publisher's region.

S2 projects the globe onto the six faces of a cube and partitions each face into 4×8 = 32 cells, giving 192 cells total. The quadratic ST transform keeps cell areas within ~1.4× of each other across the globe — no polar shrinkage. Byte values 0xC0–0xFF are reserved (192–255) for future system topics.