Map component plot device tracker location history

Hello,

In my car I installed a LoraWan GPS tracker that communicates to TTN.

Through the TTN MQTT service I am able to gather the coordinates of the LoraWan tracker as a device tracker (via Node-Red). The MQTT Device tracker component makes it possible to show the current location of the device on the map.

With a custom Google Geocode component I am able to have a history bar show the different addresses the car has been to rather than the coordinates.

This is all been working very nicely over the last few weeks. However, I would like to see a feature where you can see the history of addresses on the map. I think the Traccar component does something like that but I haven’t figured out a way to get my MQTT coordinates to work with Traccar.

For the iOS devices that we use it would be fun to see the location history as well which would be possible if the map-component featured a history-setting.

P.S. I’ve added a screenshot of how my Lovelace UI looks.

I’ve found something that might be useful for this purpose: The Google Roads API.

The introduction video shows what the API can do:

The Google Roads API is able to snap coordinates to the nearest road and it is then possible to plot a route between them. That is exactly what I’m looking for. Now I need to find a way to integrate this into home-assistant.

1 Like

I’m looking for something like this. it would be awesome if we can somehow incorporate that

Gladly i found the new Lovelace Device tracker History - works wonderful: https://www.home-assistant.io/blog/2020/04/08/release-108/#lovelace-map-history

1 Like

Just to state that then this feature request can be set to “resolved”

1 Like

How do you enable this? Do you need to have a view with a map in it? Or can we also enable this for the default map that is available in the side bar of home assistant ( I can’t find that last bit ).