[android] Round distances to a minimum of 10th #9742

Open
opened 2024-11-25 16:02:50 +00:00 by TobiPeterG · 4 comments
TobiPeterG commented 2024-11-25 16:02:50 +00:00 (Migrated from github.com)

⚠ Have you searched for similar, already existing issues? Yes

Is your feature request related to a problem? Please describe.
When I drive and stop at a traffic light, the distance to the intersection is "flickering" between e.g. 11m and 12m due to the inaccuracy of GPS

Describe the ideal solution
It would be nice if distances were rounded to a minimum of 10th, so e.g. instead of showing in 62m, just in 60m etc. This way, we're preventing distances from bouncing up and down

⚠ Have you searched for similar, already existing issues? Yes **Is your feature request related to a problem? Please describe.** When I drive and stop at a traffic light, the distance to the intersection is "flickering" between e.g. 11m and 12m due to the inaccuracy of GPS **Describe the ideal solution** It would be nice if distances were rounded to a minimum of 10th, so e.g. instead of showing in 62m, just in 60m etc. This way, we're preventing distances from bouncing up and down
TobiPeterG commented 2024-11-25 16:06:50 +00:00 (Migrated from github.com)

changed title from Round distances to a minimum of 10th to {+[android] +}Round distances to a minimum of 10th

changed title from **Round distances to a minimum of 10th** to **{+[android] +}Round distances to a minimum of 10th**
Contributor

But with this approach we can still have flickering between e.g. 10m and 20m (if we are somewhere around 15m). Only updating the UI when the value differs Xm from the previous value sounds like a better solution to me.

But with this approach we can still have flickering between e.g. 10m and 20m (if we are somewhere around 15m). Only updating the UI when the value differs Xm from the previous value sounds like a better solution to me.
matkoniecz commented 2024-11-26 08:01:13 +00:00 (Migrated from github.com)

Maybe even better would be increasing distance only if it differs Xm from the currently shown value.

So when you cycle/walk/drive in a traffic jam the distance changes are not becoming choppy or changing like 877 -> 867 -> 857 -> 847 .

Maybe even better would be increasing distance only if it differs Xm from the currently shown value. So when you cycle/walk/drive in a traffic jam the distance changes are not becoming choppy or changing like 877 -> 867 -> 857 -> 847 .
TobiPeterG commented 2024-12-03 20:43:46 +00:00 (Migrated from github.com)

But with this approach we can still have flickering between e.g. 10m and 20m (if we are somewhere around 15m). Only updating the UI when the value differs Xm from the previous value sounds like a better solution to me.

Yes, that is true. So maybe have it change on X7 and X3m, so when you're 24m away, it shows 30m, when you are 23m away, it shows 20m and only when you're 27m away again it would change to 30m. This leaves 24-26m as a wiggle room for GPS. :)

> But with this approach we can still have flickering between e.g. 10m and 20m (if we are somewhere around 15m). Only updating the UI when the value differs Xm from the previous value sounds like a better solution to me. Yes, that is true. So maybe have it change on X7 and X3m, so when you're 24m away, it shows 30m, when you are 23m away, it shows 20m and only when you're 27m away again it would change to 30m. This leaves 24-26m as a wiggle room for GPS. :)
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps#9742
No description provided.