How thevirtualkrishnaaa/routewise works
RouteWise is a cross-platform UK route-planning and navigation app focused on showing road charges before and during a journey. Drivers enter destinations, compare routes and costs, then navigate with live guidance and charge warnings; they can also manage vehicles, payment reminders, and journey history. The README documents the main app capabilities, while sampled backend and iOS sources confirm callable-function validation, Maps proxying, and native Firebase bridging. Most shared runtime implementation was not sampled, so undocumented internal call relationships are omitted.
Main entry points: RouteWiseApp.kt RouteWise app · RoutePlannerScreen.kt Route planner · index.ts Callable backend · LiveNavigationScreen.kt Live navigation
Components 24
Planning and navigation
- RouteWise app
shared/src/commonMain/kotlin/com/example/ui/RouteWiseApp.kt - Route planner
shared/src/commonMain/kotlin/com/example/ui/screens/RoutePlannerScreen.kt - Place search
shared/src/commonMain/kotlin/com/example/data/service/LocationPredictionService.kt - Route planning
shared/src/commonMain/kotlin/com/example/data/maps/RoutePlanningService.kt - Maps client
shared/src/commonMain/kotlin/com/example/data/maps/BackendMapsClient.kt - Live navigation
shared/src/commonMain/kotlin/com/example/ui/screens/LiveNavigationScreen.kt - Navigation engine
shared/src/commonMain/kotlin/com/example/data/nav/NavigationEngine.kt - GPS tracking
app/src/main/java/com/example/data/nav/LocationTracker.kt
Road charges
- Interactive charge map
shared/src/commonMain/kotlin/com/example/ui/screens/ChargeMapScreen.kt - UK charge schemes
shared/src/commonMain/kotlin/com/example/data/model/UkRoadChargeScheme.kt - Route charge calculator
shared/src/commonMain/kotlin/com/example/data/maps/RouteChargeCalculator.kt - Charge avoidance
shared/src/commonMain/kotlin/com/example/data/maps/CongestionDetour.kt
Persistence and account
- Vehicle profiles
shared/src/commonMain/kotlin/com/example/ui/screens/VehicleScreens.kt - Payment reminders
shared/src/commonMain/kotlin/com/example/ui/screens/PaymentFlowScreens.kt - Journey history
shared/src/commonMain/kotlin/com/example/ui/screens/JourneyHistoryScreen.kt - App repository
shared/src/commonMain/kotlin/com/example/data/repository/RouteWiseRepository.kt - Local database
shared/src/commonMain/kotlin/com/example/data/db/RouteWiseDatabase.kt - iOS Firebase bridge
iosApp/RouteWiser/NativeBridge.swift
Cloud services
- Callable backend
functions/src/index.ts - Request validation
functions/src/validate.ts
Other components
- Driver
- Google Maps APIs
- Firebase Firestore
- Device GPS
Connections 25
- Driver → RouteWise app: uses
README.md - RouteWise app → Route planner: opens planner
README.md - Route planner → Place search: searches places
README.md - Route planner → Route planning: compares routes
README.md - Route planner → Route charge calculator: shows fees
README.md - Route planner → Charge avoidance: avoids charges
README.md - Route planning → Maps client: requests routing
- Maps client → Callable backend: calls functions
- Callable backend → Request validation: validates requests
functions/src/index.ts - Callable backend → Google Maps APIs: requests routes and places
functions/src/index.ts - RouteWise app → Interactive charge map: shows charge map
README.md - Route charge calculator → UK charge schemes: applies scheme rules
- RouteWise app → Live navigation: starts navigation
README.md - Live navigation → Navigation engine: provides guidance
README.md - Live navigation → GPS tracking: tracks position
README.md - GPS tracking → Device GPS: reads location
- RouteWise app → Vehicle profiles: manages vehicles
README.md - Vehicle profiles → Route charge calculator: personalizes fees
README.md - RouteWise app → Payment reminders: tracks payments
README.md - RouteWise app → Journey history: reviews journeys
README.md - App repository → Local database: persists locally
- iOS Firebase bridge → Firebase Firestore: reads and writes
iosApp/RouteWiser/NativeBridge.swift - iOS Firebase bridge → Callable backend: calls account deletion
iosApp/RouteWiser/NativeBridge.swift - Callable backend → Firebase Firestore: stores feedback and deletes data
functions/src/index.ts - RouteWise app → App repository: uses repository