geoprimsField-grade geospatial math

H3 edges and vertexes

The directed edges (with lengths and neighbors) and vertexes of an cell (originToDirectedEdges, cellToVertexes).

6

The cell has 6 edges.

Directed edges
Directed edgeNeighborLength
1192a8471487ffff892a84714b3ffff202.515 m
1592a8471487ffff892a847334bffff195.585 m
1492a8471487ffff892a8471497ffff206.397 m
1692a8471487ffff892a8471483ffff202.518 m
1292a8471487ffff892a847148fffff195.584 m
1392a8471487ffff892a84714bbffff206.394 m
Vertexes
VertexLatitudeLongitude
2492a8471483ffff40.446610897-79.982138265
2392a8471483ffff40.445571073-79.984103105
2292a8471487ffff40.443826183-79.983811677
2392a8471487ffff40.443121097-79.981555564
2492a8471487ffff40.444160846-79.979590767
2592a8471487ffff40.445905756-79.979882041
Provenance
Computed by
indexing.h3.edges 1.0.0, core 0.1.0
Model
H3 v4 directed edges and vertexes (h3o 0.11)
Accuracy
Identical to H3 C
Notes
None
Cites
Uber Technologies and the H3 contributors, H3: A Hexagonal Hierarchical Geospatial Indexing System (API reference v4); Hydronium Labs, h3o: a Rust implementation of H3

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: H3 v4 directed edges and vertexes (h3o 0.11)

Accuracy: Identical to H3 C

When to use this: Use this when the boundaries between cells matter rather than the cells: the directed edges leaving a cell, with their lengths and the neighbor each one leads to, and the cell's vertexes. It is what routing, flow, and adjacency work on an H3 grid is built from. Edges are also how a boundary between two regions is expressed on the grid: the edges whose two cells fall on different sides trace it, which is how outlines are extracted from a cell set.

Limitations: A hexagon has six edges and a pentagon five, so code that assumes six breaks at the twelve pentagons of each resolution. Edge lengths vary across the grid because H3 cells are not identical, and an edge is a grid relationship rather than a physical boundary on the ground. A directed edge belongs to its origin cell, so an edge and its reverse are different objects, and code that treats them as one counts every boundary twice.

Worked example: Edges of 892a8471487ffff. Source: H3 originToDirectedEdges. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

Cell
892a8471487ffff

You get

Edges
6

Review: Not yet independently reviewed by a GIS professional.

Last verified: 2026-09-18, 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

Checked against: 20 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Terms

H3: H3 hexagonal hierarchical index
A global grid of hexagons (and 12 pentagons) at 16 resolutions, each cell about one-seventh the area of its parent, named by a 15-character index. Source: H3 hexagonal index

H3 — H3 hexagonal hierarchical index

A global grid of hexagons (and 12 pentagons) at 16 resolutions, each cell about one-seventh the area of its parent, named by a 15-character index.

Source: H3 hexagonal index