# Using location data to show a route taken

**URL:** <https://discuss.elastic.co/t/using-location-data-to-show-a-route-taken/350263>\
**Category:** Kibana\
**Created:** [January 2, 2024, 8:56pm UTC](https://discuss.elastic.co/t/using-location-data-to-show-a-route-taken/350263 "2024-01-02T20:56:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [January 2, 2024, 8:56pm UTC](https://discuss.elastic.co/t/using-location-data-to-show-a-route-taken/350263/1 "2024-01-02T20:56:03Z")

</div>

Hi

I have time based data for the location of an item, that I'd like to visualise as a sort of "route map", i.e. a sequnece of lines joining the various location points as traversed in time series order.

Maybe I'm missing a simple detial, but is this possible with kibana or other tool in the Elastic Stack?

Thanks, KM

---

<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:** [January 3, 2024, 6:10pm UTC](https://discuss.elastic.co/t/using-location-data-to-show-a-route-taken/350263/2 "2024-01-03T18:10:49Z")

</div>

You can use [geo-line aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geo-line.html) to combine individual points into lines.

You can use kibana maps to visualize tracks. To add a tracks layer, click "Add layer", then click "Tracks". Kibana maps uses `geo-line` aggregation to create lines from points

 ![Screenshot 2024-01-03 at 11.09.23 AM](https://us1.discourse-cdn.com/elastic/original/3X/3/9/39e3af0e23924888e45d93748a8160e13612492d.png)

 ![Screenshot 2024-01-03 at 11.09.46 AM](https://us1.discourse-cdn.com/elastic/original/3X/a/e/aee48e254b8af0901936c23dc90c822604f5eb74.jpeg)

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [January 4, 2024, 1:38pm UTC](https://discuss.elastic.co/t/using-location-data-to-show-a-route-taken/350263/3 "2024-01-04T13:38:40Z")

</div>

Thanks Nathan!!

I had a feeling it was more obvious than I realised. I had also found the geo-line aggregation, but had missed that the Tracks layer was using it automatically.

I had also processed my own datya to have each document contain a current and prev location, and then used Point to Point layer, which also sort of worked.

And in meantime I also found:

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

which looks like it could be excellent guide, though I got a bit stumped with all the Fleet/elastic agent related stuff, all new stuff or me using downloaded local installs of elastic/kibana on my (one) Mac. That's something for another day.

---

<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 1, 2024, 1:39pm UTC](https://discuss.elastic.co/t/using-location-data-to-show-a-route-taken/350263/4 "2024-02-01T13:39:25Z")

</div>

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