# How to put geometry data in elastic search using java api?

**URL:** <https://discuss.elastic.co/t/how-to-put-geometry-data-in-elastic-search-using-java-api/45875>\
**Category:** Elasticsearch\
**Created:** [March 31, 2016, 5:57am UTC](https://discuss.elastic.co/t/how-to-put-geometry-data-in-elastic-search-using-java-api/45875 "2016-03-31T05:57:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajnikant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajnikant/32/6490_2.png) [@Rajnikant](https://discuss.elastic.co/u/Rajnikant)\
**Post date:** [March 31, 2016, 5:57am UTC](https://discuss.elastic.co/t/how-to-put-geometry-data-in-elastic-search-using-java-api/45875/1 "2016-03-31T05:57:12Z")

</div>

i have geo shpae data and i want to add geo shape data into elastic search .

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [April 1, 2016, 2:23pm UTC](https://discuss.elastic.co/t/how-to-put-geometry-data-in-elastic-search-using-java-api/45875/2 "2016-04-01T14:23:17Z")

</div>

Hello,  
it would be best to post what you tried and what is going wrong or where you are struggling doing what you need to do. Otherwise it is hard for us to help you.

Thanks

---

<div class="post-metadata">

**Author:** ![Rajnikant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajnikant/32/6490_2.png) [@Rajnikant](https://discuss.elastic.co/u/Rajnikant)\
**Post date:** [April 5, 2016, 7:24am UTC](https://discuss.elastic.co/t/how-to-put-geometry-data-in-elastic-search-using-java-api/45875/3 "2016-04-05T07:24:36Z")

</div>

I have this type of Data:-

{  
"type": "Feature",  
"properties": {  
"Id": "c3ffe7f3-ae6f-4ded-886f-33b1632c6f48",  
"Description": "Atbara",  
"BufferValue": 0.000943974475809739,  
"PlaceType": 1,  
"Speed": 70,  
"Color": -3381556  
},  
"geometry": {  
"type": "Point",  
"coordinates": [  
33.9804,  
17.69335  
]  
}  
}

How to put this data with geo\_shape using elastic search java API?

---

<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:** [July 5, 2017, 11:02pm UTC](https://discuss.elastic.co/t/how-to-put-geometry-data-in-elastic-search-using-java-api/45875/4 "2017-07-05T23:02:22Z")

</div>


