osmandapp / OsmAnd-iOS

OsmAnd for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Round up numbers in navigation widgets

dmpr0 opened this issue · comments

ToDo UI

Android task osmandapp/OsmAnd#18762

Functionality

  • Add option to round up numbers in navigation widgets (lanes, next turns, next intermediate, target point, tunnel alerts).

UI

General settings

General settings
  • Add new item Distance during navigation, with two options:
    • Precise, icon – ic_custom_distance_number_precise
    • Round up, icon – ic_custom_distance_number_rounded
  • Tap on Distance during navigation, open new screen

Modal view, Figma

Screenshot
Precise Round up
  • Title – Distance during navigation
  • Add Cancel button. Tap should close the dialog
  • Add description to the group footer – Choose how distance information is displayed in navigation widgets (distance to point, next turn, lanes).

Choose “Precise” for exact numbers, or “Round up” for easier readability.
  • Use radio button to switch between options
  • Add preview frame with icon corresponding to selected option, icon should be scaled to 90x90 dp.
  • Tap open unselected item, should make it selected and close the bottom sheet

CarPlay

  • Should apply to CarPlay

Technical notes:

Algorithms
public static int lowerTo10BaseRoundingBounds(int num, int[] roundRange) {
public static int[] generate10BaseRoundingBounds(int max, int multCoef) {