# Geo\_shape - geo link problems with coordinates

**URL:** <https://discuss.elastic.co/t/geo-shape-geo-link-problems-with-coordinates/179924>\
**Category:** Logstash\
**Created:** [May 7, 2019, 8:57am UTC](https://discuss.elastic.co/t/geo-shape-geo-link-problems-with-coordinates/179924 "2019-05-07T08:57:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![gofbor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gofbor/32/46467_2.png) [@gofbor](https://discuss.elastic.co/u/gofbor)\
**Post date:** [May 8, 2019, 9:10am UTC](https://discuss.elastic.co/t/geo-shape-geo-link-problems-with-coordinates/179924/4 "2019-05-08T09:10:16Z")

</div>

Thanks for reply.  
But now I have message: "coordinates cannot be specified as objects"

I tried:  
{  
add\_field =\> ["[geo\_link][type]", "linestring" ]  
add\_field =\> ["[geo\_link][coordinates][0]", "[-87.623177, 41.881832]" ]  
add\_field =\> ["[geo\_link][coordinates][1]", "[-87.623177, 41.881832]" ]

```
    convert => { "[geo_link][coordinates][0]" => "float" }
    convert => { "[geo_link][coordinates][1]" => "float" }

```

}

I also tried:  
add\_field =\> ["[geo\_link][type]", "linestring" ]  
add\_field =\> ["[geo\_link][coordinates][0][lat]", " -87.623177" ]  
add\_field =\> ["[geo\_link][coordinates][0][lon]", "41.881832" ]  
add\_field =\> ["[geo\_link][coordinates][1][lat]", " -87.623177" ]  
add\_field =\> ["[geo\_link][coordinates][1][lon]", "41.881832" ]

but the same result.

---

_[View the full topic](https://discuss.elastic.co/t/geo-shape-geo-link-problems-with-coordinates/179924)._
