# Import data to kibana maping Geo\_point

**URL:** <https://discuss.elastic.co/t/import-data-to-kibana-maping-geo-point/218290>\
**Category:** Kibana\
**Created:** [February 7, 2020, 8:08am UTC](https://discuss.elastic.co/t/import-data-to-kibana-maping-geo-point/218290 "2020-02-07T08:08:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![umay\_fb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umay_fb/32/60582_2.png) [@umay\_fb](https://discuss.elastic.co/u/umay_fb)\
**Post date:** [February 7, 2020, 8:08am UTC](https://discuss.elastic.co/t/import-data-to-kibana-maping-geo-point/218290/1 "2020-02-07T08:08:28Z")

</div>

i have data like :  
{  
"lon": 106.733924,  
"lat": -6.161368  
}

and i want to import this data to Kibana With type "geo\_point"  
"geopoint1": {  
"type": "geo\_point"  
},

but i alway get error "failed to parse field [geopoint1] of type [geo\_point]"

how to slove this problem?

Thnks before....

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [February 11, 2020, 1:20pm UTC](https://discuss.elastic.co/t/import-data-to-kibana-maping-geo-point/218290/2 "2020-02-11T13:20:50Z")

</div>

Can you try creating the index and inserting documents in [console](https://www.elastic.co/guide/en/kibana/current/console-kibana.html)? What do your failed commands look like?

You should be able to insert [geo\_points](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html) with the following commands

```auto
PUT my_index
{
  "mappings": {
    "properties": {
      "location": {
        "type": "geo_point"
      }
    }
  }
}

PUT my_index/_doc/1
{
  "text": "Geo-point as an object",
  "location": { 
    "lat": 41.12,
    "lon": -71.34
  }
}

```

---

<div class="post-metadata">

**Author:** ![umay\_fb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umay_fb/32/60582_2.png) [@umay\_fb](https://discuss.elastic.co/u/umay_fb)\
**Post date:** [February 12, 2020, 4:54am UTC](https://discuss.elastic.co/t/import-data-to-kibana-maping-geo-point/218290/3 "2020-02-12T04:54:59Z")

</div>

thnks,,

i had found the error..  
"location": {  
"lat": 41.12,  
"lon": -71.34  
this data type must string

---

<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:** [March 11, 2020, 4:55am UTC](https://discuss.elastic.co/t/import-data-to-kibana-maping-geo-point/218290/4 "2020-03-11T04:55:05Z")

</div>

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