Bogus truncation of route distance #1528

Closed
opened 2021-11-08 20:50:21 +00:00 by pastk · 4 comments
Owner

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.
OM-route-distance-00-bug

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

Case 2.
OM-route-distance-9km-bug

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:

  1. put a bookmark at 36.825394, 28.603961
  2. download a map if you have to
  3. another bookmark at 36.826417, 28.597898
  4. build a walking route between the two
  5. you should get a route of 1000m length with a first "10" truncated

for case 2:

  1. put a bookmark at 36.825394, 28.603961
  2. download a map if you have to
  3. another bookmark at 36.80212, 28.598841
  4. build a walking route between the two
  5. you should get a route of 4.9km length with "4." truncated

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".

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. ![OM-route-distance-00-bug](https://user-images.githubusercontent.com/18434508/140812428-4f20d60e-0a5d-4533-85c8-8660a8a49e02.png) The actual distance here is 1000m (possible to check by rotating screen). Case 2. ![OM-route-distance-9km-bug](https://user-images.githubusercontent.com/18434508/140812442-996ae1c7-2183-4fb5-a2c9-48c7234ad65c.png) 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: 1. put a bookmark at 36.825394, 28.603961 2. download a map if you have to 3. another bookmark at 36.826417, 28.597898 4. build a walking route between the two 5. you should get a route of 1000m length with a first "10" truncated for case 2: 1. put a bookmark at 36.825394, 28.603961 2. download a map if you have to 3. another bookmark at 36.80212, 28.598841 4. build a walking route between the two 5. you should get a route of 4.9km length with "4." truncated 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".
biodranik commented 2021-11-08 21:06:09 +00:00 (Migrated from github.com)

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.

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.
Author
Owner

#1700 doesn't solve the issue completely, but at least prevents confusing outputs.

E.g. before:
OM-route-distance-9km-bug

After:
OM-route-distance-9km-bug-fixed

#1700 doesn't solve the issue completely, but at least prevents confusing outputs. E.g. before: ![OM-route-distance-9km-bug](https://user-images.githubusercontent.com/18434508/146438880-73be0aad-9eaf-479f-ba12-3d1d45dc7d71.png) After: ![OM-route-distance-9km-bug-fixed](https://user-images.githubusercontent.com/18434508/146438907-6e1359df-a8e2-46f5-9677-1ddc9ddf07e0.png)
biodranik commented 2021-12-16 22:27:27 +00:00 (Migrated from github.com)

Another option is to automatically reduce font size to fit the width. Is there such an option in Android resources?

Another option is to automatically reduce font size to fit the width. Is there such an option in Android resources?
Author
Owner

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.

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.
This repo is archived. You cannot comment on issues.
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
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-tmp#1528
No description provided.