onRouteChanged

Call whenever the primary route changes. This produces and stores geometries that need to be framed for route overview.

Routes are matched by NavigationRoute.id: a route with another ID is treated as a new route even if its geometry is the same, and onRouteProgressChanged updates whose RouteProgress.navigationRoute has another ID are ignored.

See also