geoprimsField-grade geospatial math

Spatial indexing

H3 cells, geohashes, map tiles, and Plus Codes.

Not yet independently reviewed by a GIS professional.

Spatial indexes turn a location into a short key you can store, join, and search. This section covers H3 hexagons, S2 cells, geohashes, Plus Codes, and web map tiles, and converts one place between them. Developers and GIS analysts use them to bucket points, join datasets by cell, and plan map caches. If you are not sure which system fits, start with the cross-index tool, which shows one place in each at a matched cell size. Pitfall: every key names an area, not a point, and its size depends on the resolution you choose.

Convert

See all

Moving between indexing systems: one place in each, at resolutions chosen to match a cell size.

Geohash

See all

Geohash encoding, decoding, and neighbors.

Uber's H3 hexagonal grid.

Plus Code

See all

Open Location Codes (Plus Codes).

S2 cells: a point to a cell id or token at any level, what a cell covers, and the cells across its edges.

Web map tiles and ground resolution.