Another powerful feature of bucket aggregation is the ability to do geospatial analysis on the data. If your data contains fields of the geo-point datatype, where the coordinates are captured, you can perform some interesting analysis, which can be rendered on a map to give you better insight into the data.
We will cover two types of geospatial aggregations in this section:
- Geodistance aggregation
- GeoHash grid aggregation