From 4fb2fe683b75464917dec4b1a0aaee63830f3b9a Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 28 Dec 2025 15:59:32 +0100 Subject: feat: Refactor NavBar and Planner components; update geocoding services - Removed unused Navigation2 icon from NavBar. - Updated usePlanner hook to manage route history and improve local storage handling. - Enhanced PlannerApi with new fare properties and improved itinerary handling. - Added recent routes feature in StopList with navigation to planner. - Implemented NominatimGeocodingService for autocomplete and reverse geocoding. - Updated UI components for better user experience and accessibility. - Added translations for recent routes in multiple languages. - Improved CSS styles for map controls and overall layout. --- src/frontend/app/data/PlannerApi.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/frontend/app/data/PlannerApi.ts') diff --git a/src/frontend/app/data/PlannerApi.ts b/src/frontend/app/data/PlannerApi.ts index be61d4b..4c78004 100644 --- a/src/frontend/app/data/PlannerApi.ts +++ b/src/frontend/app/data/PlannerApi.ts @@ -20,8 +20,10 @@ export interface Itinerary { transitTimeSeconds: number; waitingTimeSeconds: number; legs: Leg[]; - cashFareEuro?: number; - cardFareEuro?: number; + cashFare?: number; + cashFareIsTotal?: boolean; + cardFare?: number; + cardFareIsTotal?: boolean; } export interface Leg { @@ -30,6 +32,7 @@ export interface Leg { routeShortName?: string; routeLongName?: string; routeColor?: string; + routeTextColor?: string; headsign?: string; agencyName?: string; from?: PlannerPlace; -- cgit v1.3