withMapboxNavigation

open fun withMapboxNavigation(navigation: MapboxNavigation): NavigationMapRoute.Builder

An instance of the MapboxNavigation object. Default is null that meansyour route won't consider rerouting during a navigation session.

Return

the builder