CarNavigationInfoMapper

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

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
constructor(context: Context, carManeuverInstructionRenderer: CarManeuverInstructionRenderer, carManeuverIconRenderer: CarManeuverIconRenderer, carLanesImageGenerator: CarLanesImageRenderer)

Functions

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