Simulate navigation
The CoPilot Native Nav SDK allows you to simulate a route, often for testing purposes. When simulation is turned on, the navigation will mimic positional information being passed into the navigation, moving the chevron along the route. Voice instructions will play, speed alerts will fire; effectively providing the same functionality a user would see.
The Quick Navigation tutorial demonstrates how to create a route and to navigate it. In that guide, you will see how the NavigationViewOptions
object is created. This class has a method called shouldSimulateRoute()
. When that method is given true
as a parameter, the route will simulate. Below is an example using the Quick Navigation tutorial as a foundation: