# Send GeoPoint data to elastic Search using client.index method

**URL:** <https://discuss.elastic.co/t/send-geopoint-data-to-elastic-search-using-client-index-method/300345>\
**Category:** Elasticsearch\
**Created:** [March 22, 2022, 1:25pm UTC](https://discuss.elastic.co/t/send-geopoint-data-to-elastic-search-using-client-index-method/300345 "2022-03-22T13:25:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishnu\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_agarwal/32/103365_2.png) [@Vishnu\_Agarwal](https://discuss.elastic.co/u/Vishnu_Agarwal)\
**Post date:** [March 22, 2022, 1:25pm UTC](https://discuss.elastic.co/t/send-geopoint-data-to-elastic-search-using-client-index-method/300345/1 "2022-03-22T13:25:56Z")

</div>

I am trying to send geolocation as location:{"lat": 19.07, "lon": 72.87} , and i have mapped location as geo\_point in index. I am getting following error.

1. reason: "can't merge a non object mapping [myloc] with an object mapping"
2. root\_cause: [{type: "illegal\_argument\_exception",…}]

Can you please let me know how to map geopoints to send it to elk stack from ReactJs

Reactjs module "import Elasticsearch from "Elasticsearch";

---

<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:** [April 19, 2022, 1:26pm UTC](https://discuss.elastic.co/t/send-geopoint-data-to-elastic-search-using-client-index-method/300345/2 "2022-04-19T13:26:39Z")

</div>

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