# Geopoint lat and lot

**URL:** <https://discuss.elastic.co/t/geopoint-lat-and-lot/124669>\
**Category:** Elasticsearch\
**Created:** [March 20, 2018, 2:05am UTC](https://discuss.elastic.co/t/geopoint-lat-and-lot/124669 "2018-03-20T02:05:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![strong666](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@strong666](https://discuss.elastic.co/u/strong666)\
**Post date:** [March 20, 2018, 2:05am UTC](https://discuss.elastic.co/t/geopoint-lat-and-lot/124669/1 "2018-03-20T02:05:59Z")

</div>

I database to store the geographical position is a "lon, lat", such as: 108.714931, 34.3380499, but I see the document, is to Geo - point expressed as a string with the format: "lat, lon," only Geo - point array form is expressed as an array with the format: [lon, lat], excuse me what method to solve now

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 20, 2018, 6:36pm UTC](https://discuss.elastic.co/t/geopoint-lat-and-lot/124669/2 "2018-03-20T18:36:01Z")

</div>

You need to transform the values.  
Easier to do that in your application which reads the database and insert into elasticsearch.  
Otherwise in logstash or with a node ingest pipeline may be.

---

<div class="post-metadata">

**Author:** ![strong666](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@strong666](https://discuss.elastic.co/u/strong666)\
**Post date:** [March 22, 2018, 1:17am UTC](https://discuss.elastic.co/t/geopoint-lat-and-lot/124669/3 "2018-03-22T01:17:10Z")

</div>

Thank you. I'll go to logstash BBS

---

<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 19, 2018, 1:18am UTC](https://discuss.elastic.co/t/geopoint-lat-and-lot/124669/4 "2018-04-19T01:18:18Z")

</div>

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