πŸ—ΊοΈ S2 Geometry Calculator

A comprehensive tool for working with Google's S2 spherical geometry library. S2 cells are hierarchical decompositions of the sphere useful for geographic indexing.

✨ Reactive Interface - All updates happen automatically as you type!

Convert between S2 Cell IDs and Tokens

Cell ID to Token

Token to Cell ID

About this app

This app provides comprehensive S2 geometry calculations with real-time, reactive updates. Simply change any input and watch the results update automatically!

Features:

  • Basic Conversions: Cell ID ↔ Token conversion
  • Level Operations: Navigate S2 hierarchy
  • Coordinate Conversion: Cell ↔ Lat/Lng conversion
  • Cell Information: Detailed cell properties and neighbors
  • Visualization: Interactive maps with cell boundaries
  • Multi-Cell Display: Visualize multiple cells simultaneously
  • Batch Processing: Handle multiple cells efficiently

S2 Levels:

  • Level 0: ~85,000 km cell edge
  • Level 10: ~78 km cell edge
  • Level 16: ~1.2 km cell edge (commonly used)
  • Level 20: ~76 m cell edge
  • Level 30: ~7.5 cm cell edge (maximum)