Example application on GitHub
You can find additional Navigation SDK examples in our example application on GitHub. Clone the repository and run the example application following the instructions in the README.
Add a complete turn-by-turn experience
Render a complete turn-by-turn experience using all relevant Navigation SDK APIs and pre-built UI components.
Change Navigation View Options at runtime
The example demonstrates how to change navigation view options at runtime.
Customize runtime styling of UI components using NavigationView
The example demonstrates how to change the styling of default UI components used by NavigationView at runtime.
Customize speed limit view using NavigationView
The example demonstrates how to customize speed limit at runtime.
Customize trip progress view using NavigationView
The example demonstrates how to customize trip progress view at runtime.
Draw route lines on a map
Draw route lines on a map using the route line and route arrow APIs and the related MapboxRouteLineView and MapboxRouteArrowView.
Fetch routes between an origin and destination
Fetch routes by specifying two coordinates in RouteOptions and passing those options to MapboxNavigation\'s requestRoutes method.
Inject a custom view into NavigationView
The example demonstrates how to inject a custom view at the bottom of the info panel.
Play voice instructions for a route
Use the example to play voice instructions using Speech API and Voice Instruction Player.
Render building extrusion on arrival
Use the example to render building extrusions on arrival using building API and MapboxBuildingView.
Render current location on a map
Use NavigationLocationProvider to show a device\'s current location as a puck on a map.
Render maneuver instructions for a route
Draw maneuver instructions using the Maneuver API and MapboxManeuverView.
Render speed limit for a route
Render the speed limit of the current road using the Speed Limit API and MapboxSpeedLimitView.
Render trip progress information
Draw trip progress information using the Trip Progress API and MapboxTripProgressView.
Show customized status messages
Learn how to customize MapboxStatusView to match your application theme.
Toggle theme using NavigationView
The example demonstrates how NavigationView observes changes to app day and night theme.