# GeoPoint - how to pass accuracy?

**URL:** <https://discuss.elastic.co/t/geopoint-how-to-pass-accuracy/118425>\
**Category:** Elasticsearch\
**Created:** [February 5, 2018, 10:41am UTC](https://discuss.elastic.co/t/geopoint-how-to-pass-accuracy/118425 "2018-02-05T10:41:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikita\_Krasnov](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@Nikita\_Krasnov](https://discuss.elastic.co/u/Nikita_Krasnov)\
**Post date:** [February 5, 2018, 10:41am UTC](https://discuss.elastic.co/t/geopoint-how-to-pass-accuracy/118425/1 "2018-02-05T10:41:18Z")

</div>

I have such information for saving to ES in my json:

```
{
"geolocation": {
    "latitude": 50.443278299999996,
    "longitude": 30.5075698,
    "accuracy": 3966
  }
}

```

_geolocation_ in my Java object is GeoPoint (`private GeoPoint geolocation`). How I can pass an accuracy to GeoPoint? Or maybe there is another type for saving location with lat, lon and accuracy?

---

<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:** [March 5, 2018, 10:41am UTC](https://discuss.elastic.co/t/geopoint-how-to-pass-accuracy/118425/2 "2018-03-05T10:41:30Z")

</div>

Closed on March 5, 2018, 10:41am UTC

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