# How to customize geo\_point precision in group by aggregation?

**URL:** <https://discuss.elastic.co/t/how-to-customize-geo-point-precision-in-group-by-aggregation/60354>\
**Category:** Elasticsearch\
**Created:** [September 13, 2016, 8:34am UTC](https://discuss.elastic.co/t/how-to-customize-geo-point-precision-in-group-by-aggregation/60354 "2016-09-13T08:34:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lessless](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lessless](https://discuss.elastic.co/u/lessless)\
**Post date:** [September 13, 2016, 8:34am UTC](https://discuss.elastic.co/t/how-to-customize-geo-point-precision-in-group-by-aggregation/60354/1 "2016-09-13T08:34:15Z")

</div>

Hello,

How to group documents by `geo_point` type field taking into account only given a number of digits after the decimal point?

I.e. if we consider as valuable only 6 numbers after decimal point, then

```auto
"location": {
  "lat": "10.754764158145036",
   "lon": "106.69103039797061"
},

```

will be seen as

```auto
"location": {
  "lat": "10.754764",
   "lon": "106.691030"
},

```

---

<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 5, 2017, 10:20pm UTC](https://discuss.elastic.co/t/how-to-customize-geo-point-precision-in-group-by-aggregation/60354/2 "2017-07-05T22:20:50Z")

</div>


