# Pyelasticsearch and geopoint

**URL:** <https://discuss.elastic.co/t/pyelasticsearch-and-geopoint/59687>\
**Category:** Elasticsearch\
**Created:** [September 2, 2016, 4:08pm UTC](https://discuss.elastic.co/t/pyelasticsearch-and-geopoint/59687 "2016-09-02T16:08:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alainc](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@alainc](https://discuss.elastic.co/u/alainc)\
**Post date:** [September 2, 2016, 4:08pm UTC](https://discuss.elastic.co/t/pyelasticsearch-and-geopoint/59687/1 "2016-09-02T16:08:43Z")

</div>

maybe i should ask another place..

i currently try to bulk insert with the pyelasticsearch python lib [https://pyelasticsearch.readthedocs.io/en/latest/](https://pyelasticsearch.readthedocs.io/en/latest/) a geopoint

the destination index is mapped with a geopoint mapping for data.

my datas come from csv and convert it with pandas lib

inside my csv lat and lon are in 2 distinct columns.

then sent to ES by pyelasticsearch but never succeed to insert into geopoint

should i generate another column wiht specific format and insert it to become my geopoint?  
or any setting to manipulate it within ES?

base of my import python comes from here [https://gist.github.com/clemsos/8668698](https://gist.github.com/clemsos/8668698)  
thanks  
alain

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 3, 2016, 7:39pm UTC](https://discuss.elastic.co/t/pyelasticsearch-and-geopoint/59687/2 "2016-09-03T19:39:56Z")

</div>

What do the documents you're indexing look like? What does the destination index's mappings look like?

---

<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, 10:22pm UTC](https://discuss.elastic.co/t/pyelasticsearch-and-geopoint/59687/3 "2017-07-05T22:22:40Z")

</div>


