Example application on GitHub
During the public preview period, you can find additional Navigation SDK v2 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.
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.
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.