# GeoJSON from location/change datatype of location to Geo\_Point

**URL:** <https://discuss.elastic.co/t/geojson-from-location-change-datatype-of-location-to-geo-point/232805>\
**Category:** Logstash\
**Created:** [May 15, 2020, 11:34am UTC](https://discuss.elastic.co/t/geojson-from-location-change-datatype-of-location-to-geo-point/232805 "2020-05-15T11:34:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubham184](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@shubham184](https://discuss.elastic.co/u/shubham184)\
**Post date:** [May 15, 2020, 11:34am UTC](https://discuss.elastic.co/t/geojson-from-location-change-datatype-of-location-to-geo-point/232805/1 "2020-05-15T11:34:47Z")

</div>

Hello, I have incoming data in the below format

```auto
    "TestItem": {
        "OriginCountry": "IN",
        "OriginCity": "Banglore",
        "DestinationCountry": "US",
         "DestinationCity":"New York"}

```

I want to change the datatype to geo\_point so that I can view it in Kibana maps, is this poosible via filters in logstash  
(I have created region maps in visualization but i am specifically looking to create this in kibana maps)

---

<div class="post-metadata">

**Author:** ![ptamba](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@ptamba](https://discuss.elastic.co/u/ptamba)\
**Post date:** [May 15, 2020, 1:28pm UTC](https://discuss.elastic.co/t/geojson-from-location-change-datatype-of-location-to-geo-point/232805/2 "2020-05-15T13:28:07Z")

</div>

datatype is defined in ES mapping.

---

<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:** [June 12, 2020, 1:28pm UTC](https://discuss.elastic.co/t/geojson-from-location-change-datatype-of-location-to-geo-point/232805/3 "2020-06-12T13:28:13Z")

</div>

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