S2 cell vertices
The four corners of an cell as latitude and longitude, counterclockwise, ready to draw the cell.
The four corners of 47e66f are listed counterclockwise.
| Latitude | Longitude |
|---|---|
| 48.8557683 deg | 2.3669069 deg |
| 48.9362398 deg | 2.3736309 deg |
| 48.9380523 deg | 2.2836411 deg |
| 48.8575712 deg | 2.2771715 deg |
Provenance
- Computed by
- indexing.s2.vertices 1.0.0, core 0.1.0
- Model
- S2 geometry and Web Mercator tile arithmetic, as the general S2 and tile tools compute them
- Accuracy
- Exact for indexes and tokens; S2 areas to the precision of the cell's spherical polygon
- Notes
- None
- Cites
- Google, S2 Geometry
Something look off?
How we got thisFormula, worked example, sources, and proof
Model: S2 geometry and Web Mercator tile arithmetic, as the general S2 and tile tools compute them
Accuracy: Exact for indexes and tokens; S2 areas to the precision of the cell's spherical polygon
When to use this: Use this to draw an S2 cell or clip data to it. Paste the token or cell id. The tool returns the cell's four corners counterclockwise as latitude and longitude. S2 cells are quadrilaterals on the sphere whose edges are great-circle arcs, so the four corners define the cell exactly.
Limitations: The edges between the corners are great-circle arcs, not lines of latitude or longitude, so a large cell drawn as a straight-edged polygon on a flat map is slightly off. The ring is not closed: repeat the first corner if your format needs it. Cells near the cube's corners are noticeably skewed.
Worked example: A level 10 cell over Paris. Source: S2 and slippy-map conventions, computed by the core. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.
You enter
- S2 cell
- 47e66f
You get
- S2 cell
- 47e66f
Review: Not yet independently reviewed by a GIS professional.
Last verified: 2026-09-22, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.
Status: version 1.0.0, core 0.1.0. See this tool in the verification report.
Changes
- 2026-10-14, changed: The focused S2 operations (cell area, hierarchy, token, and vertices), held to s2sphere, and the XYZ-TMS and quadkey tile conversions, held to the slippy-map and quadkey definitions, are now stable, with a new invariants test for areas, parents, corners, and round trips. Results are unchanged. Changelog
Checked against: 21 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.
Sources
- S2 Geometry, Google, S2 Geometry library. Cell ids, the quadratic projection, the Hilbert curve, tokens, and cell hierarchy.
Terms
- S2: S2 Geometry
- A way of indexing the sphere: the Earth is projected onto a cube, each face is traced by a Hilbert curve, and a cell is a position along that curve at a level from 0 to 30. Source: S2 Geometry
S2 — S2 Geometry
A way of indexing the sphere: the Earth is projected onto a cube, each face is traced by a Hilbert curve, and a cell is a position along that curve at a level from 0 to 30.
Source: S2 Geometry