osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.37k stars 986 forks source link

Public transportation navigation #17604

Open breversa opened 11 months ago

breversa commented 11 months ago

Description

During my last vacation, I would routinely plan a public transportation (mainly bus/tram) route before needing it (… in part since it takes so much time to calculate: https://github.com/osmandapp/OsmAnd/issues/17530). I would then put my phone in my pocket, or do anything else (browsing the Internet, looking up a restaurant’s menu, the usual tourist’s stuff…), then once I’m ready to go, I would open OsmAnd again… and the route is gone, forcing me to restart from scratch. :(

How to reproduce

  1. Set OsmAnd to "public transportation" profile
  2. Set a destination, calculate and pick a route (using the "start" button)
  3. Switch off your screen or use other apps (hence putting OsmAnd "down the memory heap")
  4. Open OsmAnd again

Actual result

My route is gone. I have to restart from scratch (= set the destination, wait while the routes are being calculated, pick one and start it). This is especially infuriating when you’re on a tight schedule, as it makes planning ahead impossible. As a workaround, I had to take screenshots of the routes’ details in order to not lose them… :-/

Expected result

My route is still there. At the very least, a "Routing was interrupted. Do you want to resume it?" message, like on the car profile, would help a lot.

Environment OsmAnd Version: OsmAnd~ 4.3.12 from F-Droid Android/iOS version: /e/OS 1.12.3 = Android 10 Device model: Samsung Galaxy S9

vshcherb commented 11 months ago

Do you experience that any calculated route disappears or only public transport route?

breversa commented 11 months ago

I haven’t driven during my vacation, but I’m pretty sure that car/bike routing displays the "Routing was interrupted. Do you want to resume it?" when opening OsmAnd again.

breversa commented 11 months ago

Also, public transportation routing doesn’t show any icon in the status bar, nor notification, contrary to car/bike routing that shows both an icon and a notification with the next turn.

vshcherb commented 11 months ago

Public Transportation doesn't have a routing mechanism, it's only route calculation but it doesn't update the route and it doesn't monitor the state.

vshcherb commented 11 months ago

To do:

  1. Save / Restore state about Public Transport navigation
  2. Display my location during PT navigation
  3. Notification to view the route
  4. Implement possible a feature to recalculate the route
breversa commented 11 months ago

Thanks for the explanation! I support the to-do list and I’m willing to help test them! :-)