CarNavigationInfoMapper

class CarNavigationInfoMapper(    context: Context,     carManeuverInstructionRenderer: CarManeuverInstructionRenderer,     carManeuverIconRenderer: CarManeuverIconRenderer,     carLanesImageGenerator: CarLanesImageRenderer,     carDistanceFormatter: CarDistanceFormatter)

The car library provides an NavigationTemplate.NavigationInfo interface to show in a similar way we show Maneuvers. This class takes our maneuvers and maps them to the provided RoutingInfo for now.

Constructors

Link copied to clipboard
fun CarNavigationInfoMapper(    context: Context,     carManeuverInstructionRenderer: CarManeuverInstructionRenderer,     carManeuverIconRenderer: CarManeuverIconRenderer,     carLanesImageGenerator: CarLanesImageRenderer,     carDistanceFormatter: CarDistanceFormatter)

Functions

Link copied to clipboard
fun mapNavigationInfo(    expectedManeuvers: Expected<ManeuverError, List<Maneuver>>,     routeShields: List<RouteShield>,     routeProgress: RouteProgress): NavigationTemplate.NavigationInfo?