# Aggregate geo data without hardcode an origin

**URL:** https://discuss.elastic.co/t/aggregate-geo-data-without-hardcode-an-origin/251738
**Category:** Elasticsearch
**Created:** [October 12, 2020, 9:27am UTC](https://discuss.elastic.co/t/aggregate-geo-data-without-hardcode-an-origin/251738 "2020-10-12T09:27:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ErikvdVen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/erikvdven/32/24602_2.png) [@ErikvdVen](https://discuss.elastic.co/u/ErikvdVen)
#### Post date: [October 12, 2020, 9:27am UTC](https://discuss.elastic.co/t/aggregate-geo-data-without-hardcode-an-origin/251738/1 "2020-10-12T09:27:50Z")

</div>

I have indexed geodata from multiple people who visited different places. Now I only want to show places where 2 or more people were close to each other (max 100 meter apart from each other).  
I need to do this without hardcoding an origin. Is this even possible?

In the end I would like to combine this with the timestamp (available in the same documents) to filter on time as well (max 10 minutes apart from each other for example).

I am struggling to get this done in Kibana, but thought I should start with DSL itself before moving towards maps.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 9, 2020, 9:27am UTC](https://discuss.elastic.co/t/aggregate-geo-data-without-hardcode-an-origin/251738/2 "2020-11-09T09:27:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
