Bogus truncation of route distance #1528
Labels
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps-tmp#1528
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When there is not enough screen space to display route's estimated time & distance (due to font size settings for example) then time & distance get truncated, sometimes producing bogus / misleading results:
Case 1.

The actual distance here is 1000m (possible to check by rotating screen).
Case 2.

Here the output looks legit at the first glance, but the actual distance is 4.9km! Its not obvious it was truncated and it makes it much worse as it provides wrong information to the user.
Probably cases like that are rare though as they require a certain combination of screen resolution, font size and display size settings (and dpi possibly?).
How to reproduce:
Increase a "display size" setting to be i.e. "large" and / or increase "font size" to e.g. 125%.
Depending on your device it might take a different combination of settings to reproduce or maybe it won't be reproducible at all.
A sure way to reproduce is to use android emulator with a "Nexus S" (480x800 resolution) virtual device and Android 11 image and a "font size" setting "large".
for case 1:
for case 2:
Expected behavior:
First of all - truncate from the end, not from the beginning! E.g. "4.9km" should become "4.9..." not "...9km". In this case its much easier for the user to understand that the truncation took place.
Ideally find another way to position time, distance and elevation info so there is enough space for everything.
If its not possible then I think that the most important info is distance, next is estimated time and the last one is elevation (so it should be sacrificed first). Ideally it would be possible to tap on the truncated info and a full time - distance - elevation info will be displayed in a pop-up.
Tested on "2021.11.04-2-FDroid-debug".
The best solution here could be to move the Start button down, and use the space above it for the path information. E.g. to use a whole horizontal line above the graph and the Start button.
#1700 doesn't solve the issue completely, but at least prevents confusing outputs.
E.g. before:

After:

Another option is to automatically reduce font size to fit the width. Is there such an option in Android resources?
Yep it looks there is a font auto-size option and also an option to auto-scroll the text that doesn't fit - I'll experiment more with it.