Geo centroid aggregation

Geo centroid aggregation #

A metrics aggregation computing the weighted centroid (mean latitude and longitude) of all geo_point values.

Example #

Returns the count of points and their centroid — the natural center point for map placement.

Parameters for geo_centroid #

  • field
    (Required, string) geo_point field you wish to aggregate.
Calendar September 26, 2026
Edit Edit this page