# How to convert lat/lon data coming from MongoDB to geo\_point type?

**URL:** https://discuss.elastic.co/t/how-to-convert-lat-lon-data-coming-from-mongodb-to-geo-point-type/165980
**Category:** Logstash
**Created:** [January 28, 2019, 10:34am UTC](https://discuss.elastic.co/t/how-to-convert-lat-lon-data-coming-from-mongodb-to-geo-point-type/165980 "2019-01-28T10:34:23Z")
**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: [January 28, 2019, 2:02pm UTC](https://discuss.elastic.co/t/how-to-convert-lat-lon-data-coming-from-mongodb-to-geo-point-type/165980/2 "2019-01-28T14:02:26Z")

</div>

> [@topgun743](#):
>
> But I want to know if there is any other way via .conf input file, to create _geo\_point_ without creating their mapping first in Elasticsearch. Is it possible?

If your field is called geoip then the default mapping will make that a geo\_point. For _any_ other field name you need a mapping. [This](https://discuss.elastic.co/t/location-dosent-convert-to-geo-point/131199/4) thread might help.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-convert-lat-lon-data-coming-from-mongodb-to-geo-point-type/165980)._
