Freika / dawarich

Self-hosted alternative to Google Location History (Google Maps Timeline)
https://dawarich.app
GNU Affero General Public License v3.0
2.23k stars 51 forks source link

Trip lines are cut #403

Closed alangrafu closed 1 week ago

alangrafu commented 1 week ago

Describe the bug Points are connected by lines, but sometimes those lines are cut, as if they were 2 different trips, which doesn't make much sense, since it is the same entity traveling.

Version 0.16

To Reproduce

  1. Check on some long trip
  2. The lines are cut

Expected behavior Since it is the same person/device traveling, I would expect a line between each contiguous point.

Screenshots

This is owntracks UI

image

This is dawarich UI

image

Logs N/A

Additional context N/A

Freika commented 1 week ago

Owntracks and Dawarich are rendering routes differently. In Owntracks, all the points (literally all of them) are connected by one single polyline, while Dawarich breaks it into separate routes, based on space and time between consequent points to prevent total mess from being rendered on the map.

Here's how my own location history would look like in a single line:

изображение

And here is the same dataset with routes split:

изображение

As a user, you can change settings of how routes being drawn in the map settings, left top corner:

изображение

Later on, this might be changed, I have an idea of having "route" entity on the backend, and when it's implemented, I'll think about working on functionality to enable users to merge their routes and render them as a single route.

alangrafu commented 1 week ago

Thanks for the clarification!