# How can I plot Google map with Long and Lat?

**URL:** https://discuss.elastic.co/t/how-can-i-plot-google-map-with-long-and-lat/91647
**Category:** Kibana
**Created:** [July 3, 2017, 2:16pm UTC](https://discuss.elastic.co/t/how-can-i-plot-google-map-with-long-and-lat/91647 "2017-07-03T14:16:30Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)
#### Post date: [July 3, 2017, 5:22pm UTC](https://discuss.elastic.co/t/how-can-i-plot-google-map-with-long-and-lat/91647/8 "2017-07-03T17:22:01Z")

</div>

Can you try using Logstash to transform your data? Take a look at the `mutate` plugin filter, specifically configured with `add_field`: [https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-add\_field](https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-add_field).

You'll want to end up with something like this:

```auto
filter {
  mutate {
    rename => {
      'latitude' => '[geo][lat]'
      'longitude' => '[geo][lon]'
    }
  }
}

```

or:

```auto
filter {
  mutate {
    rename => {
      'latitude' => '[geo][0]'
      'longitude' => '[geo][1]'
    }
  }
}

```

For some more context, what we're trying to do is wrangle some of your data to create a new field which conforms to the `geo_point` datatype ([https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html)).

CJ

---

_[View the full topic](https://discuss.elastic.co/t/how-can-i-plot-google-map-with-long-and-lat/91647)._
