Work with E2 cells

Encode a point in space and time, inspect its segments, and traverse its spatial or temporal neighbors.

Documentation navigation

Encode and decode

terminal
e2 cell encode --lat 40.7 --lng -74
  --time 2026-08-18T00:00:00Z --spatial-resolution 9
  --temporal-resolution 1d --feature restaurant

e2 cell decode e2:1:892a13ba46bffff:1d:20677
All commands support the global --json option. The encode command accepts temporal resolutions from 1s through 7d.

Traversal commands

CommandBehavior
cell neighbors <id> --k 1Return spatial neighbors at a grid distance.
cell previous <id>Move to the previous temporal bucket.
cell next <id>Move to the next temporal bucket.
cell spatial-parent <id>Move to the parent spatial cell.
cell temporal-parent <id>Move to the next coarser temporal resolution.