mapbox / mapbox-navigation-ios

Turn-by-turn navigation logic and UI in Swift on iOS
https://docs.mapbox.com/ios/navigation/
Other
863 stars 313 forks source link

Feature request : Pause in side by side navigation. #2388

Closed vishal-iosdeveloper closed 3 years ago

vishal-iosdeveloper commented 4 years ago

It'll be great if we can pause side by side navigation & resume when we need.

Udumft commented 4 years ago

Hello, @vishal-iosdeveloper ! During turn-by-turn navigation user may stop at any time and then resume walking/driving whenever he wants, that is allowed with current implementation. If user closes the app mid-route and then re-opens it, we cannot guarantee to resume where he left off because user location or route conditions could change during the "pause", which may result in changing the route too. At this use case it is preferred to just request a new route. Did you mean something else? Could you please provide more details or an example of what you mean by "pause navigation"?

vishal-iosdeveloper commented 4 years ago

I want to give Pause button in side by side navigation. Here is a real time scenario :

I hope you will get from this context. I don't want to resume activity after app close. I just want to "Pause" side by side navigation in such scenarios.

Udumft commented 4 years ago

To see if I get it right: user want's to pause the navigation in order to stop updating his location and thus avoid re-routings, voice instructions, and save extra bit of battery while navigation updates are not needed?

Indeed, such feature is not implemented at the moment and is not planned, but in the meantime you can take a look at these start/stop methods as a starting point to implement your own NavigationService to pause/resume.

Anyway, thank you for the suggestion!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

Stale.