# Geo hash based on country name?

**URL:** <https://discuss.elastic.co/t/geo-hash-based-on-country-name/45631>\
**Category:** Elasticsearch\
**Created:** [March 28, 2016, 9:46pm UTC](https://discuss.elastic.co/t/geo-hash-based-on-country-name/45631 "2016-03-28T21:46:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srinivas\_Chamarthi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/srinivas_chamarthi/32/8729_2.png) [@Srinivas\_Chamarthi](https://discuss.elastic.co/u/Srinivas_Chamarthi)\
**Post date:** [March 28, 2016, 9:46pm UTC](https://discuss.elastic.co/t/geo-hash-based-on-country-name/45631/1 "2016-03-28T21:46:57Z")

</div>

am trying to create a geomap visualization based on country name field ? is there a way I can define geo hash based on country name which automatically be translated to geo points on the map ?

I can actually do it by calculating the coordinates but I don't want to do this for millions of records already exist within my cluster.

appreciate if anyone done this with an alternative approach

thx  
srinivas

---

<div class="post-metadata">

**Author:** ![alainc](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@alainc](https://discuss.elastic.co/u/alainc)\
**Post date:** [March 29, 2016, 7:32am UTC](https://discuss.elastic.co/t/geo-hash-based-on-country-name/45631/2 "2016-03-29T07:32:46Z")

</div>

Hi maybe this could help you.  
but it's not on elasticsearch it's on kibana.

> **[stormpython/vectormap](https://github.com/stormpython/vectormap)**
>
> vectormap - Vector Map Plugin for Kibana 4

---

<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:** [March 29, 2016, 8:07am UTC](https://discuss.elastic.co/t/geo-hash-based-on-country-name/45631/3 "2016-03-29T08:07:43Z")

</div>

Since the number of countries on earth is finite, perhaps you can use a translate filter that maps country names to lat/lon coordinates?

---

<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 5, 2017, 11:04pm UTC](https://discuss.elastic.co/t/geo-hash-based-on-country-name/45631/4 "2017-07-05T23:04:29Z")

</div>


