Skip to content
Commitwise
Menu

Geohash

Also called: S2 cell, H3 cell, Geospatial index

A short string that names a rectangular area of the map, where longer strings are smaller areas inside shorter ones.

Definition

Latitude and longitude bits are interleaved and encoded in base 32, so nearby places often share a prefix. Systems use geohash, or alternatives like S2 and H3, as a grid of cells to index moving objects, turning "what's near me?" into lookups of a cell and its neighbors. Neighbors across some borders have different prefixes.

In practice

A ride app keeps, for each geohash cell, the set of available drivers inside it.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.