# Using geo\_point and pulling lat/long from existing fields

**URL:** <https://discuss.elastic.co/t/using-geo-point-and-pulling-lat-long-from-existing-fields/59346>\
**Category:** Logstash\
**Created:** [August 30, 2016, 5:23pm UTC](https://discuss.elastic.co/t/using-geo-point-and-pulling-lat-long-from-existing-fields/59346 "2016-08-30T17:23:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![khall](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@khall](https://discuss.elastic.co/u/khall)\
**Post date:** [August 30, 2016, 5:23pm UTC](https://discuss.elastic.co/t/using-geo-point-and-pulling-lat-long-from-existing-fields/59346/1 "2016-08-30T17:23:21Z")

</div>

I've reviewed different pieces of documentation and am unable to put it all together to figure out how to create a geo\_point field. I have used logstash to pull in a CSV file that contains statistical data for cities and includes two fields: LAT and LONG as integers.

How do I take these two fields and use them to generate a geographical representation of this statistical data. I can't seem to figure out how to create a geo\_point type field and populate it with the data in my LAT and LONG fields (probably not understanding the exact steps for this).

Any help would be great!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 31, 2016, 1:19am UTC](https://discuss.elastic.co/t/using-geo-point-and-pulling-lat-long-from-existing-fields/59346/2 "2016-08-31T01:19:59Z")

</div>

You may want to move this to the Logstash category, someone there will be able to help.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 2, 2016, 5:53am UTC](https://discuss.elastic.co/t/using-geo-point-and-pulling-lat-long-from-existing-fields/59346/3 "2016-09-02T05:53:41Z")

</div>

The Elasticsearch documentation specifies what a field value can look like to be recognized as a geo\_point value (for example, it can be an array of the latitude and longitude float values). On top of that, the index's mappings need to define the field in question as a geo\_point field. This is usually done via index templates.

---

<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 6, 2017, 4:40am UTC](https://discuss.elastic.co/t/using-geo-point-and-pulling-lat-long-from-existing-fields/59346/4 "2017-07-06T04:40:19Z")

</div>


