# Location dosen't convert to geo\_point

**URL:** <https://discuss.elastic.co/t/location-dosent-convert-to-geo-point/131199>\
**Category:** Logstash\
**Created:** [May 9, 2018, 3:58pm UTC](https://discuss.elastic.co/t/location-dosent-convert-to-geo-point/131199 "2018-05-09T15:58:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 9, 2018, 4:39pm UTC](https://discuss.elastic.co/t/location-dosent-convert-to-geo-point/131199/2 "2018-05-09T16:39:53Z")

</div>

> [@akml\_kk](#):
>
> so what im doing wrong ?

I do not know. However, it works if you use a dynamic template.

```
PUT _template/nyc 
{
  "order":0,
  "index_patterns":"nyc",
  "mappings": {
   "calls": {
      "dynamic_templates": [
        {
          "locations": {
            "match": "location",
            "mapping": { "type": "geo_point" }
          }
        }
      ]
    }
  }
}

```

---

_[View the full topic](https://discuss.elastic.co/t/location-dosent-convert-to-geo-point/131199)._
