# GeoSpatial Data for Maps

**URL:** <https://discuss.elastic.co/t/geospatial-data-for-maps/306441>\
**Category:** Kibana\
**Created:** [June 6, 2022, 11:23am UTC](https://discuss.elastic.co/t/geospatial-data-for-maps/306441 "2022-06-06T11:23:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![behappy\_alwayz0401](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/behappy_alwayz0401/32/105988_2.png) [@behappy\_alwayz0401](https://discuss.elastic.co/u/behappy_alwayz0401)\
**Post date:** [June 6, 2022, 11:23am UTC](https://discuss.elastic.co/t/geospatial-data-for-maps/306441/1 "2022-06-06T11:23:05Z")

</div>

Hi,  
I have a flat file that has country and region. With this as a start point, how do I convert this data to geospatial fields for maps?  
When I use the current index pattern created from this file to create a map, it says no geospatial fields available for this index pattern.  
Thanks

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 6, 2022, 2:59pm UTC](https://discuss.elastic.co/t/geospatial-data-for-maps/306441/2 "2022-06-06T14:59:51Z")

</div>

What are you using as your country code?

See [Add a choropleth layer](https://www.elastic.co/guide/en/kibana/current/maps-getting-started.html#maps-add-choropleth-layer) for instructions on how to build a map from an index containing country identifiers.

---

<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 4, 2022, 3:00pm UTC](https://discuss.elastic.co/t/geospatial-data-for-maps/306441/3 "2022-07-04T15:00:03Z")

</div>

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