# Create geopoint data

**URL:** https://discuss.elastic.co/t/create-geopoint-data/107580
**Category:** Logstash
**Created:** [November 14, 2017, 4:06pm UTC](https://discuss.elastic.co/t/create-geopoint-data/107580 "2017-11-14T16:06:50Z")
**Posts on this page:** 1
**Showing post:** 5

<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: [November 15, 2017, 12:54pm UTC](https://discuss.elastic.co/t/create-geopoint-data/107580/5 "2017-11-15T12:54:41Z")

</div>

> The thing is that I haven't understood yet how to convert them with "geoip", function and mutate.

The geoip filter turns IP addresses into lat/lon values, but you already have the lat/lon values so you don't need that filter. All you need to do is

- store the lat/lon values in a field so that it can be recognized as geo\_point (see [Geopoint field type | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html)),
- map that field as geo\_point in ES, possibly by using an index template.

> If I've understood what you said, I have to rename the index something like: "logstash-positions\_gps".

If you want to rely on Logstash's index template, yes. The template maps the `[geoip][location]` field as geo\_point.

So to summarize, name your index logstash-positions\_gps och store the lat/lon values in `[geoip][location]` in a format described in the docs I linked to above. If you want to customize the index name or the field name then that's fine, but I suggest you get it working first.

---

_[View the full topic](https://discuss.elastic.co/t/create-geopoint-data/107580)._
