TransportInfo

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.

Constructors

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

Properties

Link copied to clipboard

Thematic color associated with this transport type or line. Used for UI highlighting and visual differentiation between transport options.

Link copied to clipboard

Display name of the transport (e.g., bus number "42", subway line "Red", or train route "Aeroexpress").

Link copied to clipboard

The nearest departure times for precise schedule display. Used when exact departure times are available (e.g., "16:18, 16:25, 16:32"). Empty list means only the interval/single schedule is available.

Link copied to clipboard

Scheduled timetable for this transport service.

Link copied to clipboard
val type: PublicTransportType

Type of the transport.