# Aggregations with geo\_bounding\_box?

**URL:** <https://discuss.elastic.co/t/aggregations-with-geo-bounding-box/125498>\
**Category:** Elasticsearch\
**Created:** [March 25, 2018, 4:39pm UTC](https://discuss.elastic.co/t/aggregations-with-geo-bounding-box/125498 "2018-03-25T16:39:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyki](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tyki/32/29207_2.png) [@Tyki](https://discuss.elastic.co/u/Tyki)\
**Post date:** [March 25, 2018, 4:39pm UTC](https://discuss.elastic.co/t/aggregations-with-geo-bounding-box/125498/1 "2018-03-25T16:39:08Z")

</div>

Hello,

I'm working on a side project using map.

My goal is to display all the points that are in the viewport of the user.  
Actually, I'm doing a search/scroll with a geo\_bounding\_box filter, fetch all the points and working with a JS lib that do the cluster on the map.

I'm wondering if it's possible to avoid the scroll and doing an aggregation with geo\_bounding\_box and create cluster of points, that are in the viewport, during the search? Allowing to just creating cluster points on client side, not calculating them.

---

<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:** [April 22, 2018, 4:39pm UTC](https://discuss.elastic.co/t/aggregations-with-geo-bounding-box/125498/2 "2018-04-22T16:39:37Z")

</div>

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