# Geohash\_grid as sub-aggregation

**URL:** <https://discuss.elastic.co/t/geohash-grid-as-sub-aggregation/90418>\
**Category:** Elasticsearch\
**Created:** [June 22, 2017, 9:33am UTC](https://discuss.elastic.co/t/geohash-grid-as-sub-aggregation/90418 "2017-06-22T09:33:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccaillaud](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@ccaillaud](https://discuss.elastic.co/u/ccaillaud)\
**Post date:** [June 22, 2017, 9:33am UTC](https://discuss.elastic.co/t/geohash-grid-as-sub-aggregation/90418/1 "2017-06-22T09:33:59Z")

</div>

Hello,

I'm using ElasticSearch 2.4.3 and was wondering if there is any way to use geohash\_grid as a sub-aggregation.

A bit of context : I store lat/lon coordinates alongside a user ID and a timestamp, so there may be multiple coordinates for a single user ID. I would like to do a geohash\_grid aggregation, but only on the last coordinates of every user ID.

Is this possible with the version of ES I'm using ?

---

<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:** [July 20, 2017, 9:34am UTC](https://discuss.elastic.co/t/geohash-grid-as-sub-aggregation/90418/2 "2017-07-20T09:34:01Z")

</div>

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