# Kibana changes the value of Lat/Lon

**URL:** <https://discuss.elastic.co/t/kibana-changes-the-value-of-lat-lon/93737>\
**Category:** Kibana\
**Created:** [July 19, 2017, 10:26am UTC](https://discuss.elastic.co/t/kibana-changes-the-value-of-lat-lon/93737 "2017-07-19T10:26:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![moabbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moabbas/32/19231_2.png) [@moabbas](https://discuss.elastic.co/u/moabbas)\
**Post date:** [July 19, 2017, 10:26am UTC](https://discuss.elastic.co/t/kibana-changes-the-value-of-lat-lon/93737/1 "2017-07-19T10:26:34Z")

</div>

I have defined location with Lat/Lon as the following:  
PUT /attractions  
{  
"mappings": {  
"restaurant": {  
"properties": {  
"name": {  
"type": "string"  
},  
"location": {  
"type": "geo\_point"  
}  
}  
}  
}  
}

```
PUT /attractions/restaurant/1
{
    "name": "Chipotle Mexican Grill",
     "location": "-53.25928,-14.41650"
}

```

The value kibana read is not the same i defined.  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/3/8/38ae5536377da3ca7e3aa1d924445ad994953f14.png)  
Does anyone has solution for this one?  
Thanks  
Muhammad Abbas

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 19, 2017, 10:42am UTC](https://discuss.elastic.co/t/kibana-changes-the-value-of-lat-lon/93737/2 "2017-07-19T10:42:51Z")

</div>

Look at the note ("Geo-points expressed as an array or string") towards the [end of this section](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/geo-point.html#geo-point), as I believe this explains what you are seeing.

---

<div class="post-metadata">

**Author:** ![moabbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moabbas/32/19231_2.png) [@moabbas](https://discuss.elastic.co/u/moabbas)\
**Post date:** [July 19, 2017, 10:46am UTC](https://discuss.elastic.co/t/kibana-changes-the-value-of-lat-lon/93737/3 "2017-07-19T10:46:25Z")

</div>

You mean that i need to define Geo-points as an array not as string

---

<div class="post-metadata">

**Author:** ![moabbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moabbas/32/19231_2.png) [@moabbas](https://discuss.elastic.co/u/moabbas)\
**Post date:** [July 19, 2017, 2:58pm UTC](https://discuss.elastic.co/t/kibana-changes-the-value-of-lat-lon/93737/4 "2017-07-19T14:58:56Z")

</div>

I solved it by changing the way i define the Lat/Lon as array not as string.

PUT /attractions/restaurant/1  
{  
"name": "Chipotle Mexican Grill",  
"location": [-53.25928,-14.41650]  
}

---

<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:** [August 16, 2017, 2:59pm UTC](https://discuss.elastic.co/t/kibana-changes-the-value-of-lat-lon/93737/5 "2017-08-16T14:59:15Z")

</div>

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