Skip to content

Speed values are incorrect #1314

@framesfree

Description

@framesfree

Since the introduction of the color-coded routes I noticed that the speed value that is shown on the map per point was strange. I didn't notice it right away since I though that maybe I was really slow in the traffic.
However, today I was reviewing the data and discovered that I was going around 22 kph on a highway when I distinctly remember going around 80 there. I thought maybe it is Dawarich iOS client issue but I opened up my data from google takeout and here for instance it shows 35 km/h on a highway:
Image
I opened up the data (My data -> Points) and found those points that roughly correspond to the screenshot above:

Speed, km/h	Recorded At		Coordinates
33		15 Apr 2025, 09:53:09	49.5030488, 6.1521719	
34		15 Apr 2025, 09:53:42	49.508576, 6.1645845	
33		15 Apr 2025, 09:54:08	49.5105568, 6.17637	
22		15 Apr 2025, 09:54:43	49.5070466, 6.1903454	
27		15 Apr 2025, 09:55:11	49.5075086, 6.1995048

Simple calculation based on position shows that I was moving with the average speed of 109.8 kph and dawarich average is 30.5, which is 3.6x slower. Maybe there is a conversion issue in the units somewhere? The real question is how those numbers are calculated. I also checked the raw takeout file and it seems that the speed is not logged there. Maybe it's just my instance? Can anyone try to reproduce this?

My setup
Dawarich is running on a VPS with docker compose (arm64/v8). "Default" dawarich_db "postgis/postgis:17-3.5-alpine" container is replaced (due to lack of support for arm64) with "postgres:17" + postgresql-17-postgis-3 installed.

Version
Currently - 0.27.1. I am pretty sure the speed was showing correctly for this trip before, but I don't remember which version it was - for sure before route color coding but I also migrated to arm64/v8 since then.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Map'
  2. Load any route and hover over a datapoint
  3. Note the 'Current speed' value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions