-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Add transport mode filtering to trip planner (#609)
### TL;DR Added transport mode filtering functionality to the trip planner ### What changed? - Added support for excluding specific transport modes (train, bus, ferry, etc.) when planning trips - Implemented mode selection UI with toggle functionality - Added parameter handling for excluded transport modes in the API service - Updated the TimeTableViewModel to handle mode selection changes and trigger API requests ### How to test? 1. Navigate to the trip planner screen 2. Plan a journey between two locations 3. Use the transport mode filters to exclude specific modes (e.g., trains or buses) 4. Verify that the journey results update to exclude the selected transport modes 5. Toggle different combinations of transport modes and confirm the results update accordingly ### Why make this change? To provide users with more control over their journey planning by allowing them to exclude transport modes they don't want to use. This is particularly useful for users who have preferences for specific types of transport or want to avoid certain modes of travel.
- Loading branch information
1 parent
c34d0d3
commit 17e7801
Showing
7 changed files
with
72 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters