DefaultPublicTransportRouteContent

Default implementation of PublicTransportRouteContent that renders each part of the public transport route card using the built-in SDK composables.

Use this object directly when no customization is needed, or as a delegation base to override only specific components:

object MyPublicTransportRouteContent : PublicTransportRouteContent by DefaultPublicTransportRouteContent {
@Composable
override fun GoButton(
viewModel: PublicTransportRouteViewModel,
icons: PublicTransportRouteComposableIcons,
colors: RouteCardColors,
) {
// Custom "Go" button implementation
}
}

Functions

Link copied to clipboard

Renders the departure section showing the starting point of the route, including the place name, address, and departure time.

Link copied to clipboard

Renders the destination section showing the final stop of the route, including the stop name, address, and estimated arrival time.

Link copied to clipboard

Renders the action button area containing the primary "Go" button to start navigation along the selected public transport route, and an optional pedestrian navigation button.

Link copied to clipboard

Renders the header section of the public transport route card, displaying summary information such as total travel duration and fare.

Link copied to clipboard

Renders the list of route segments representing the complete journey, including walking legs, public transport legs, and transfer points.