-
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 DateTime support to trip planning API (#402)
### TL;DR Added support for departure/arrival time selection in trip planning ### What changed? - Extended the trip planning API to support departure and arrival time preferences - Added new parameters for date (YYYYMMDD) and time (HHMM) in the trip planning service - Introduced a DepArr enum to handle departure/arrival preferences - Added utility functions in DateTimeSelectionItem to format date and time - Updated TimeTableViewModel to incorporate user-selected date/time preferences ### How to test? 1. Set a departure or arrival time in the date/time selector 2. Plan a trip between two stops 3. Verify that the returned journeys respect the selected time preference 4. Test both departure and arrival scenarios 5. Verify date/time formatting matches the required format (YYYYMMDD for date, HHMM for time) ### Why make this change? To provide users with more control over their journey planning by allowing them to specify whether they want to arrive by or depart at a specific time, rather than only showing current departure times.
- Loading branch information
1 parent
0f4a628
commit 1b1ef36
Showing
4 changed files
with
53 additions
and
4 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