Package-level declarations

Types

class DefaultPublicTransportBriefRouteViewModel(trafficRoute: TrafficRoute, val destinationTimeZone: TimeZone = TimeZone.getDefault(), scheduleProvider: PublicTransportScheduleProvider? = null, onCardClickCallback: () -> Unit = {}, onRouteActionClickCallback: () -> Unit = {}) : PublicTransportBriefRouteViewModel

Default implementation of PublicTransportBriefRouteViewModel.

Link copied to clipboard
data class FareInfo(val value: Int, val currency: Currency)

Represents fare information with amount and currency for locale-aware formatting.

Link copied to clipboard

ViewModel for a route summary.

Link copied to clipboard

Default configuration values for the public transport route composable.

Link copied to clipboard
data class PublicTransportRouteComposableIcons(@DrawableRes val arrivalArrow: Int, @DrawableRes val transportPedestrian: Int, @DrawableRes val transportAeroexpress: Int, @DrawableRes val transportBus: Int, @DrawableRes val transportCableCar: Int, @DrawableRes val transportCombined: Int, @DrawableRes val transportFunicularRailway: Int, @DrawableRes val transportLightMetro: Int, @DrawableRes val transportLightRail: Int, @DrawableRes val transportMcc: Int, @DrawableRes val transportMcd: Int, @DrawableRes val transportMetro: Int, @DrawableRes val transportMonorail: Int, @DrawableRes val transportPremetro: Int, @DrawableRes val transportShuttleBus: Int, @DrawableRes val transportSuburbanTrain: Int, @DrawableRes val transportTram: Int, @DrawableRes val transportTrolleybus: Int, @DrawableRes val transportWaterway: Int)

Icon resource identifiers for the public transport route composable.

Link copied to clipboard

Public transport schedule provider.

Link copied to clipboard
data class RouteSchedule(val schedule: TransportSchedule, val nextDepartures: List<TransportSchedule> = emptyList())

Schedule for a route.

Link copied to clipboard
sealed interface RouteSegment

A single contiguous part of the route.

Link copied to clipboard
data class ScheduleGroup(val transports: List<TransportInfo>)

A group of transports with the same schedule.

Link copied to clipboard

Utility object for grouping public transport schedules.

Link copied to clipboard
data class TransportInfo(val type: PublicTransportType, val name: String, val color: Color, val schedule: TransportSchedule, val nextDepartures: List<TransportSchedule> = emptyList())

Represents transportation information for a specific segment of a route. Contains details about a particular transport line operating within a route fragment.

Link copied to clipboard
sealed interface TransportSchedule

Transport schedule abstraction independent of Directory API.

Functions

Link copied to clipboard
fun PublicTransportBriefRouteComposable(viewModel: PublicTransportBriefRouteViewModel, icons: PublicTransportRouteComposableIcons = PublicTransportRouteComposableDefaults.icons, colors: RouteCardColors = RouteCardColors.colors())

A brief summary card for a public transport route.