# Aggregation on geopoint.lat grepoint.lon field?

**URL:** <https://discuss.elastic.co/t/aggregation-on-geopoint-lat-grepoint-lon-field/92044>\
**Category:** Elasticsearch\
**Created:** [July 6, 2017, 8:18am UTC](https://discuss.elastic.co/t/aggregation-on-geopoint-lat-grepoint-lon-field/92044 "2017-07-06T08:18:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)\
**Post date:** [July 6, 2017, 8:18am UTC](https://discuss.elastic.co/t/aggregation-on-geopoint-lat-grepoint-lon-field/92044/1 "2017-07-06T08:18:29Z")

</div>

HI

Are we able to find all the document with the same geopoint in terms of lat and lon value. I tried  
GET /\_search?pretty -d '  
{  
"aggs":{  
"1":{  
"terms":{"field":"geo\_location.lat"}  
}  
},  
"from": 0,  
"size": 1  
}'  
But seems does not work.

---

<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:** [August 3, 2017, 8:18am UTC](https://discuss.elastic.co/t/aggregation-on-geopoint-lat-grepoint-lon-field/92044/2 "2017-08-03T08:18:51Z")

</div>

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