# Expected geo\_point type on field \[geoip.location\], but got \[double\]

**URL:** https://discuss.elastic.co/t/expected-geo-point-type-on-field-geoip-location-but-got-double/60004
**Category:** Kibana
**Created:** [September 7, 2016, 3:21pm UTC](https://discuss.elastic.co/t/expected-geo-point-type-on-field-geoip-location-but-got-double/60004 "2016-09-07T15:21:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dantze](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@dantze](https://discuss.elastic.co/u/dantze)
#### Post date: [September 7, 2016, 3:21pm UTC](https://discuss.elastic.co/t/expected-geo-point-type-on-field-geoip-location-but-got-double/60004/1 "2016-09-07T15:21:33Z")

</div>

I've a Tile Map visualisation that is throwing a "Expected geo\_point type on field [geoip.location], but got [double]" error.

I'm a newbie with the ELK stack.

My geoip json object is like the following:  
geoip": {  
"ip": "[182.2XX.XX.XXX](http://182.2XX.XX.XXX)",  
"country\_code2": "TH",  
"country\_code3": "THA",  
"country\_name": "Thailand",  
"continent\_code": "AS",  
"region\_name": "40",  
"city\_name": "Bangkok",  
"latitude": 1X.XXXXXXXXXXX999,  
"longitude": 1XX.XXXXXXXXXXX999,  
"timezone": "Asia/Bangkok",  
"real\_region\_name": "Krung Thep",  
"location": [  
1XX.XXXXXXXXXXX999,  
1X.XXXXXXXXXXX999  
]  
}

As far as I understand, the geoip.location is an array of two coordinates which I presume it is a geopoint type.  
Can someone point me in the right direction? I'm completely lost here.

---

<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: [September 7, 2016, 6:20pm UTC](https://discuss.elastic.co/t/expected-geo-point-type-on-field-geoip-location-but-got-double/60004/2 "2016-09-07T18:20:36Z")

</div>

Hi there,

It looks like your index mappings may not be set up correctly ([https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html)).

I think you'll need to update your mapping to specify that the "location" property of your document is a "geo\_point" ([https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html)).

Hope this helps,  
CJ

---

<div class="post-metadata">

### Author: ![dantze](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@dantze](https://discuss.elastic.co/u/dantze)
#### Post date: [September 8, 2016, 3:49pm UTC](https://discuss.elastic.co/t/expected-geo-point-type-on-field-geoip-location-but-got-double/60004/3 "2016-09-08T15:49:16Z")

</div>

You are correct!

I forgot to set them, I set them and it works like a charm, thanks.

---

<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 6, 2017, 1:39pm UTC](https://discuss.elastic.co/t/expected-geo-point-type-on-field-geoip-location-but-got-double/60004/4 "2017-07-06T13:39:21Z")

</div>


