Aggregation/Clustering of Geo Points


I have a list of geo coordinates with timestamps. I want to get the areas with the most geo points for today.

{[lat, lng], time}, ..., {[lat, lng], time} -> {area, #points in area},...,area, #points in area}

I have seen that Elastic Search provides an Aggregation functionality shown here. I cannot translate that example to my use case.

Do you have an idea how I could solve this?

(Mark Walkom) #2

Basically the first thing you want to do is filter by time so you aren't grouping all the docs together by area irrespective of time.
Then you can use this agg to gather things together for your results -

(system) #3