mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

Purpose of RouteController unclear

Open aodhol opened this issue 5 years ago • 4 comments

Mapbox Navigation SDK version: 0.39

If I wanted to have turn-by-turn directions textual and visual shown on a map without using the NavigationViewController, rather an instance of NavigationMapView and some labels for the directions, is it still necessary to use a RouteController? In the past, I subscribed to various alerts and on that basis triggered a new request and re-route but in the new versions of the API it's unclear to me what's actually required and what isn't. I'm using the NavigationService and observe it for progressDidChange and routeControllerDidReroute notifications and show the routes on the MapView accordingly. In essence, I need to show a route on a map, show an instruction in a label and if the user doesn't follow the current route, re-route and show the new route on the map etc.

Thank you,

Aodh.

aodhol avatar Feb 27 '20 14:02 aodhol

@1ec5 any chance of a clarification on the above? 🙏

aodhol avatar Apr 30 '20 18:04 aodhol

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] avatar Oct 31 '20 04:10 stale[bot]

A RouteController or LegacyRouteController is always involved during turn-by-turn navigation. You can create one independently of NavigationViewController. CustomViewController.swift in this repository’s Example target demonstrates implementing turn-by-turn navigation using only Core Navigation.

1ec5 avatar Nov 03 '20 20:11 1ec5

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] avatar Apr 28 '22 13:04 stale[bot]