osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.64k stars 1.01k forks source link

Railroad crossing announcement both late, and after awaken #6787

Open seahorse41 opened 5 years ago

seahorse41 commented 5 years ago

Version: Osmand plus 3.3.5 Pixel , android 8.0.0 Offline maps

This happened after completing a route with directions, ending at the top of this map. where I "reached my destination" (Walmart), and since I was still in motion on Hwy 395, I touched the GPX button to record another track, and switched to another app, putting Osmand in the background to work silently. https://www.openstreetmap.org/#map=15/48.5444/-117.91195 0.7 mile and 3 minutes later, heading south on Railroad Street, I turned left on West 1st Avenue, away from the railroad tracks. Right after completing the turn, at the center of the linked map, Osmand voice announced "Attention Railroad crossing" Why? just because I was on this street name? It should notice my direction was away.

Osmand was in the background, so I did not see if it was still in car profile after I "arrived at my destination." But it usually is back in Global mode.

35 minutes later, when I was back at the first destination, I saved and stopped the track, and put the Pixel to sleep.

Another 33 minutes later, I reawakened Osmand, and was surprised it spoke "Attention Railroad crossing" Why? It recorded the track in gpx, in which I did not come near the tracks again. The track had ended, and I had not moved from where I last closed it. What triggered this?

sonora commented 5 years ago

Have not investigated your particular trip, but here is how our code behaves:

Not sure if this explains your observations? In any case, if you want OsmAnd to return to silent mode, simply restart the app.

seahorse41 commented 5 years ago

That would explain the first occurrence, if the fence around the crossing is bi-directional. I don't mind the voice announcements remaining active, as long as they are correct and appropriate. In fact I active route directions (outside of my normal area) just to get the helper turned on.