addWaypoint
suspend fun NavManagerService.addWaypoint(waypoint: SearchResult, showDialog: Boolean = true): Result<Unit>
Adds a waypoint to the current route, following the same logic of adding waypoints to the current route as the Nav App itself. Works only during NavigationState.ActiveGuidance.
Parameters
waypoint
the waypoint to add to the current route.
showDialog
when true (the default), the Nav App shows its confirmation dialog and the waypoint is added only after the user confirms. When false, the waypoint is added immediately without any UI prompt.