osmandapp / OsmAnd-iOS

OsmAnd for iOS
Other
290 stars 92 forks source link

Marker widget - estimated time of arrival or ETA #4160

Open SergeiShmargun opened 5 days ago

SergeiShmargun commented 5 days ago

Reproduced on: iOS 18.1.1 TestFlight version 4.9.0.8.

Description:

When adding the "marker - estimated time" widget, the estimated time of arrival is not displayed, during navigation the marker is not displayed and appears only after its completion with strange values.

Steps to reproduce:

  1. Open the OsmAnd app > select car profile
  2. Tap the menu in the lower left corner > settings > top display > add widget > map markers panel > add widget
  3. Add widget > markers > first marker > preview > estimated measurement time > 15s interval > add widget > exit settings
  4. Tap a point on the map > tap the navigation shortcut > tap navigation > select a marker > settings > simulate navigation > done > start.

Actual result:

After setting the marker, the estimated time of arrival is not displayed (i.e. instead of travel time there is a dash), during navigation the marker is not displayed, only after its completion with strange values.

https://github.com/user-attachments/assets/5d823e71-f9c4-49c0-b408-26363a5c8e37

Expected result:

The marker shows the estimated time of the speed measurement, calculated as the distance to the marker divided by the average speed. The average speed is calculated as the average of all speed measurements obtained from the location points over the time interval you select from 15 seconds to 60 minutes.

yuriiurshuliak commented 10 hours ago

The bug has been reproduced:

  1. Steps:

    • Add a Map Marker to the map.
    • Add the Top Bar Widget and Map Markers Widget to the car profile.
    • Configure the widget to show the First Map Marker, select Estimated Arrival Time, and set the interval to 15 seconds.
    • Start navigation with simulation enabled.
  2. Result:

    • The Map Markers Widget is not displayed during navigation and fails to show the ETA.
    • After navigation, the widget appears with incorrect, changing values.

Expected Behavior:
The widget should display the distance or ETA for the selected marker.

OsmAnd 4.9.0.11 iOS Version 16.4.1

https://github.com/user-attachments/assets/35d58752-296b-42d2-b554-ddfe2fca5a88