# Converting to geo\_point

**URL:** <https://discuss.elastic.co/t/converting-to-geo-point/125417>\
**Category:** Logstash\
**Created:** [March 23, 2018, 10:51pm UTC](https://discuss.elastic.co/t/converting-to-geo-point/125417 "2018-03-23T22:51:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Pororo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pororo/32/27711_2.png) [@Pororo](https://discuss.elastic.co/u/Pororo)\
**Post date:** [March 27, 2018, 2:22am UTC](https://discuss.elastic.co/t/converting-to-geo-point/125417/3 "2018-03-27T02:22:42Z")

</div>

Thank you so much. Your demonstration helped me a lot.

I have some questions tho. The first is if I just used your last method, ES will recognize "location" as the type of string. So do I need to set the mapping for this data to specify the type of "location" should be geo\_point in the console of kibana in advance? I am kinda confused cuz I thought ES will automatically do the recognizion.

For getting the value of the field, you mentioned using %{[lat]}. I am wondering if it works for the case that I want to parse something from the specific field which is in the original input data.

Or could you take a look at [Geo point mapping](https://discuss.elastic.co/t/geo-point-mapping/125105)

Thanks again!!!

---

_[View the full topic](https://discuss.elastic.co/t/converting-to-geo-point/125417)._
