# Index each point a different id in a GeoJSON file

**URL:** <https://discuss.elastic.co/t/index-each-point-a-different-id-in-a-geojson-file/93593>\
**Category:** Elasticsearch\
**Created:** [July 18, 2017, 1:31pm UTC](https://discuss.elastic.co/t/index-each-point-a-different-id-in-a-geojson-file/93593 "2017-07-18T13:31:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ximenling20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ximenling20/32/20177_2.png) [@ximenling20](https://discuss.elastic.co/u/ximenling20)\
**Post date:** [July 18, 2017, 1:31pm UTC](https://discuss.elastic.co/t/index-each-point-a-different-id-in-a-geojson-file/93593/1 "2017-07-18T13:31:12Z")

</div>

A GeoJSON file can contain several points in the _features_ array (see the short example below). When loading the GeoJSON file into elasticsearch, how to index each point a different id?

The ways I can think about, for example, convert it to Json file and use \_bulk api, then is there any convertor avaliable?  
Or, write a configure file and load it through Logstash, then is there any configure file sample avaliable?

Additional: Is the GeoJSON format a good choice if I want to map points with values on Kibana?

```
{
   "type": "FeatureCollection",
   "features": [
  {
    "type": "Feature",
    "geometry": {
       "type": "Point",
       "coordinates": [4.427266,51.776804]
    },
    "properties": {
    "Date":"26.06.2017",
    "Time":"9:25:24"
    }
  },
  {
    "type": "Feature",
    "geometry": {
       "type": "Point",
       "coordinates": [4.427294,51.776806]
    },
    "properties": {
    "Date":"26.06.2017",
    "Time":"9:25:28"
    }
  }
 ]
}
```

---

<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:** [August 15, 2017, 1:31pm UTC](https://discuss.elastic.co/t/index-each-point-a-different-id-in-a-geojson-file/93593/2 "2017-08-15T13:31:22Z")

</div>

Closed on August 15, 2017, 1:31pm UTC

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