PublicTransportRouteViewModel
Provides all necessary data and actions for rendering and controlling the public transport route card in the RouteEditor.
This ViewModel encapsulates the business logic and state for displaying a detailed multi-modal itinerary, including walking segments, public transport legs, intermediate stops, and interactive controls (e.g., expanding stops, starting navigation).
Inheritors
Properties
Information about the starting point of the route.
Detailed information about the final destination, including the stop, address, and arrival time.
Timezone of the route's destination point.
Indicates whether the list of intermediate stops is currently expanded (visible) or collapsed (hidden).
Ordered list of route segments that together form the complete journey. Each element represents a contiguous part of the route between two points. The sequence follows chronological order from departure to arrival.
Total travel duration from start to end of the route. Excludes waiting times and transfer times.
Functions
Handles the user action of clicking the "Back" button in the route card.
Handles the user action of starting navigation along the currently selected public transport route.
Handles the user action of clicking the "Pedestrian Navigator" button.
Update state of the intermediate stops list.