GeoHash

Basic idea

Encodes (lat, lon) as a short base-32 string by interleaving the bits of each coordinate (Z-order). Common prefix length ≈ proximity, so adjacent points usually share long prefixes — handy for range queries on a B-tree or KV store.

Key formulas

Resources

Siblings