# Get a Geo-Point from a nested field

**URL:** <https://discuss.elastic.co/t/get-a-geo-point-from-a-nested-field/152484>\
**Category:** Kibana\
**Created:** [October 15, 2018, 11:37am UTC](https://discuss.elastic.co/t/get-a-geo-point-from-a-nested-field/152484 "2018-10-15T11:37:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adde](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@adde](https://discuss.elastic.co/u/adde)\
**Post date:** [October 15, 2018, 11:37am UTC](https://discuss.elastic.co/t/get-a-geo-point-from-a-nested-field/152484/1 "2018-10-15T11:37:36Z")

</div>

Hello, I'm looking for a solution to get from my data a geo-point. I don't know how I can change the type. I tied it with a mapping, but it doesn't work.

Here is my .conf-File:  
input {  
kafka {  
bootstrap\_servers =\> "localhost:9092"  
topics =\> ["flink\_to\_apama"]  
}  
}  
filter {  
json {  
source =\> "message"  
}  
split {  
field =\> "Impacts"  
}  
mutate {  
rename =\> { "[Impacts][Location]" =\> "[Ort]"}  
}  
split {  
field =\> "[Ort][StageLocation]"  
}  
mutate {  
rename =\> { "[Ort][StageLocation]" =\> "[alllocations]"}  
rename =\> { "[alllocations][GPSLatitude]" =\> "[location][lat]"}  
rename =\> { "[alllocations][GPSLongitude]" =\> "[location][long]"}

}  
geoip { source =\> "clientip" }  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "addestryforalocation"  
template =\> "logs\_kafka\_template.json"  
template\_name =\> "kafka-logstash-template"  
}  
}  
This is the Mapping of "location" what shows me Kibana.

"location": {  
"properties": {  
"lat": {  
"type": "float"  
},  
"long": {  
"type": "float"  
}  
}  
},  
Can someone help me to find my mistake to make a locationmap in Kibana?

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [October 15, 2018, 6:06pm UTC](https://discuss.elastic.co/t/get-a-geo-point-from-a-nested-field/152484/2 "2018-10-15T18:06:43Z")

</div>

Hey, this looks close. I think we'll want to rename long to lon, [ref](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html).

After this is done the mappings will still be float unfortunately, to change mappings we'll need to reindex or start from a fresh index.

---

<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:** [November 12, 2018, 6:06pm UTC](https://discuss.elastic.co/t/get-a-geo-point-from-a-nested-field/152484/3 "2018-11-12T18:06:47Z")

</div>

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