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

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

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
mapNavigationInfo
Link copied to clipboard
fun mapNavigationInfo(expectedManeuvers: Expected<ManeuverError, List<Maneuver>>, routeShields: List<RouteShield>, routeProgress: RouteProgress): NavigationTemplate.NavigationInfo?
toString
Link copied to clipboard
open fun toString(): String