Kibana changes the value of Lat/Lon

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.

Does anyone has solution for this one?
Thanks
Muhammad Abbas

Look at the note ("Geo-points expressed as an array or string") towards the end of this section, as I believe this explains what you are seeing.

1 Like

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

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]
}

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