geoprimsField-grade geospatial math

A5 cell from latitude and longitude

The equal-area pentagonal cell containing a point at resolution 0 to 30, with its center and area.

Go the other way: A5 cell boundary →

Experimental: not yet fully verified. How results are checked

63611a8000000000

The point is in A5 cell 63611a8000000000, with an area of 32.4291 km².

Center latitude
Center longitude
Cell area
Provenance
Computed by
indexing.a5.lon-lat-to-cell 1.0.0, core 0.1.0
Model
A5 0.10.1, pinned to a5-js and a5-rs 0.10.1
Accuracy
A 120-case fixture spans every resolution, the poles, the antimeridian, and fixed landmarks. Cell indexes match a5-js 0.10.1 exactly; centers agree within 1e-9°. Cell areas agree to the fixture's 1e-14 relative tolerance in testing.
Notes
1 shown with the answer
Cites
A5 project, A5 API reference; A5 contributors, a5-rs: Rust implementation of A5

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: A5 0.10.1, pinned to a5-js and a5-rs 0.10.1

Accuracy: A 120-case fixture spans every resolution, the poles, the antimeridian, and fixed landmarks. Cell indexes match a5-js 0.10.1 exactly; centers agree within 1e-9°. Cell areas agree to the fixture's 1e-14 relative tolerance in testing.

When to use this: Use this to group points into equal-area cells without latitude bias. Choose a coarse resolution for global summaries and a fine one for local bins; the index can then be stored, sorted, or passed to the boundary and hierarchy tools.

Limitations: A5 0.10.1 is pre-1.0, so its index encoding and API can still change. Resolution 30 cannot encode every quintant and can fall back to resolution 29; always read the returned index rather than assuming the requested resolution. A5 uses an authalic Earth model, not an ellipsoidal parcel boundary.

Worked example: London at resolution 10. Source: a5-js 0.10.1 index-encoding example. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

Latitude
51.5074 deg
Longitude
-0.1276 deg
Resolution
10

You get

A5 cell
63611a8000000000
Center latitude
51.511842922°
Center longitude
-0.159718399°
Cell area
32.4291 km²

Review: Not yet independently reviewed by a GIS professional.

Last verified: 2026-10-12, 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: 5 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Terms

A5: A5 pentagonal geospatial index
A global equal-area grid of pentagonal cells at 31 resolutions, named by a 64-bit index and arranged in a logical parent-child hierarchy. Source: A5 pentagonal index

Experimental means this tool has not yet met the stable bar: at least 20 golden vectors, differential tests, and an independent worked example.

A5 — A5 pentagonal geospatial index

A global equal-area grid of pentagonal cells at 31 resolutions, named by a 64-bit index and arranged in a logical parent-child hierarchy.

Source: A5 pentagonal index