suspend fun NavigationRoute.hasUnexpectedClosures(): Boolean

This function checks whether the NavigationRoute has unexpected closures, which could be a reason to re-route.

true is returned whenever there's any RouteLeg.closures outside of a direct region around a coordinate from RouteOptions.coordinatesList that was allowed for snapping to closures with RouteOptions.snappingIncludeClosuresList or RouteOptions.snappingIncludeStaticClosuresList. flags. Otherwise, false is returned.