# How to map geo points (coordinates) to reginal layer

**URL:** <https://discuss.elastic.co/t/how-to-map-geo-points-coordinates-to-reginal-layer/350225>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [January 2, 2024, 10:56am UTC](https://discuss.elastic.co/t/how-to-map-geo-points-coordinates-to-reginal-layer/350225 "2024-01-02T10:56:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mharari](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mharari](https://discuss.elastic.co/u/mharari)\
**Post date:** [January 2, 2024, 10:56am UTC](https://discuss.elastic.co/t/how-to-map-geo-points-coordinates-to-reginal-layer/350225/1 "2024-01-02T10:56:56Z")

</div>

I have docs with a geo location field (coordinates I get from the user's browser), and I want to add a layer to my map - where those geo locations are mapped into regions map ?  
like so -  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/1/f12f5aab1163933b63b676c95ccef60969495b47.jpeg)

All I have is coordinates . If its not possible with only coordinates, what data should I add - and is this data retrievable from the browser's api? (like navigator.geolocation)

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [January 2, 2024, 11:22am UTC](https://discuss.elastic.co/t/how-to-map-geo-points-coordinates-to-reginal-layer/350225/2 "2024-01-02T11:22:30Z")

</div>

Take a look at this blog post

> **[How to map custom boundaries in Kibana with reverse geocoding](https://www.elastic.co/blog/how-to-map-custom-boundaries-in-kibana-with-reverse-geocoding)**
>
> Tired of map boundaries such as zip and area codes? Now you can easily create maps in Kibana with the GeoIP processor in Elasticsearch. Learn about indexing geospatial data, creating and running a pipeline on your documents, and more.

The gist is that you can enrich your documents by adding a region identifier field so that later you can render your data as a choropleth map (region map).

The blog post focuses on custom boundaries, but you can upload the [Administrative Regions](https://maps.elastic.co/#file/administrative_regions_lvl2) dataset that contains both region and country codes.

---

<div class="post-metadata">

**Author:** ![mharari](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mharari](https://discuss.elastic.co/u/mharari)\
**Post date:** [January 4, 2024, 1:31pm UTC](https://discuss.elastic.co/t/how-to-map-geo-points-coordinates-to-reginal-layer/350225/3 "2024-01-04T13:31:38Z")

</div>

this works great! unfortunately - my index is created from a data stream , so I needed to reindex the ds into a new regular index - and than ingest the data into the pipline (which worked). I would like to know is it possible to run this pipeline and rollover the ds (with each document passing thorough the pipeline), and also add this pipeline to the index settings

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [January 4, 2024, 1:51pm UTC](https://discuss.elastic.co/t/how-to-map-geo-points-coordinates-to-reginal-layer/350225/4 "2024-01-04T13:51:19Z")

</div>

Take a look at this tutorial, where a Data Stream is configured with an index template that includes an ingest pipeline

> **[Track, visualize, and alert on assets in real time | Kibana Guide \[master\] |...](https://www.elastic.co/guide/en/kibana/master/asset-tracking-tutorial.html)**

We've [just revamped](https://github.com/elastic/kibana/pull/173999) the tutorial so any feedback is welcomed 😄

---

<div class="post-metadata">

**Author:** ![mharari](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mharari](https://discuss.elastic.co/u/mharari)\
**Post date:** [January 4, 2024, 2:04pm UTC](https://discuss.elastic.co/t/how-to-map-geo-points-coordinates-to-reginal-layer/350225/5 "2024-01-04T14:04:38Z")

</div>

ok I think I got it , after rollover the new DS index settings looked like this :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/1/51a72f09d6ce7943a4d52161846f8f1e7f12aa05.png)

but I can tell the docs are not ingested since the GEOID is not added to the docs.

---

<div class="post-metadata">

**Author:** ![mharari](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mharari](https://discuss.elastic.co/u/mharari)\
**Post date:** [January 5, 2024, 3:43pm UTC](https://discuss.elastic.co/t/how-to-map-geo-points-coordinates-to-reginal-layer/350225/6 "2024-01-05T15:43:04Z")

</div>

never mind - one of my fields was incorrectly written to the ds. 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:** [February 2, 2024, 3:43pm UTC](https://discuss.elastic.co/t/how-to-map-geo-points-coordinates-to-reginal-layer/350225/7 "2024-02-02T15:43:09Z")

</div>

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