Car Navigation Info Mapper
class CarNavigationInfoMapper(context: Context, carManeuverInstructionRenderer: CarManeuverInstructionRenderer, carManeuverIconRenderer: CarManeuverIconRenderer, carLanesImageGenerator: CarLanesImageRenderer, carDistanceFormatter: CarDistanceFormatter)
Content copied to clipboard
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
CarNavigationInfoMapper
Link copied to clipboard
fun CarNavigationInfoMapper(context: Context, carManeuverInstructionRenderer: CarManeuverInstructionRenderer, carManeuverIconRenderer: CarManeuverIconRenderer, carLanesImageGenerator: CarLanesImageRenderer, carDistanceFormatter: CarDistanceFormatter)
Content copied to clipboard
Functions
mapNavigationInfo
Link copied to clipboard
fun mapNavigationInfo(expectedManeuvers: Expected<ManeuverError, List<Maneuver>>, routeShields: List<RouteShield>, routeProgress: RouteProgress): NavigationTemplate.NavigationInfo?
Content copied to clipboard