Geohash_grid

Geohash grid aggregation

/ Geohash_grid, / Aggregation

Geohash grid aggregation #

A multi-bucket aggregation that groups geo_point values into geohash cells — the building block of map clustering. It answers “where are my documents concentrated?” in one request, handing the map a count per cell instead of thousands of individual markers.

How it works #

Each document’s point is encoded as a geohash string: base-32 characters produced by interleaving longitude and latitude bits over successively halved intervals. precision is the number of characters kept — 1–12, clamped, default 5 (cells of roughly 4.9 km × 4.9 km). The classic Amsterdam coordinate 52.374081, 4.912350 at precision 3 lands in cell u17.

...