Travel- Mate

Plan smarter. Travel together. Stay safe.

Visit Repo
Travel- Mate banner

About

## Challenges we ran into

### Challenges We Ran Into

Building an AI-driven, real-time travel companion natively on Android presented several technical and architectural hurdles:

---

#### 1. Preventing Redundant & Expensive AI Generation at Scale * **The Challenge**: Every time a user explores a new destination, generating comprehensive multi-day itineraries, landmarks, and costs via LLMs consumes significant tokens and takes time. If multiple users search for the same city (e.g., *"Kyoto"* or *"Reykjavík"*), naive implementations would trigger duplicate AI calls, driving up costs and latency. * **How We Solved It**: We engineered a **"Cache-First, Zero-Duplicate" two-layer architecture**. Before making any external call, the app queries the local Room database (0 ms latency). If missed, it queries a shared Supabase public cache. For novel destinations, we implemented an atomic concurrency lock (`generation_jobs`) with Kotlin coroutine mutexes, ensuring only a single AI synthesis job runs while other concurrent requests wait and share the result.

---

#### 2. Reliable Structured Output & Timeout Handling from LLMs * **The Challenge**: Comprehensive multi-day travel schedules generate large JSON payloads, occasionally encountering network timeouts, rate limits, or hallucinations that could break native UI models. * **How We Solved It**: We implemented a resilient orchestration engine in `GeminiTravelService` that includes: * Automatic multi-model fallback chaining (`gemini-2.5-flash` → `gemini-3.8-flash` → `gemini-flash-latest`). * Strict schema validation and deserialization using Moshi codegen. * An intelligent tool-action engine (`AiActionResult`) enabling the conversational AI to deterministically add, reorder, or edit database itinerary items.

---

#### 3. Real-Time Chat & Identity Without Forcing Frictionful Sign-Ins * **The Challenge**: Requiring users to complete lengthy registration forms before using the app kills onboarding conversion. However, group chat and cross-device expense syncing require stable user identities and secure access controls. * **How We Solved It**: We created a **frictionless device-first identity system** (`ChatIdentityRepository` + Supabase RLS). The app auto-provisions a secure, persistent identity profile upon first launch, allowing instant peer-to-peer messaging and group collaboration while providing an upgrade path to permanent credentials.

---

#### 4. Enriching Destinations Without Costly Closed-Ecosystem APIs * **The Challenge**: Traditional travel apps rely on expensive third-party APIs (like Google Places) for photos, geocoding, and climate data, making independent scaling cost-prohibitive. * **How We Solved It**: We architected a zero-cost, open-data aggregation pipeline: * **Visuals**: Wikimedia Commons REST API for royalty-free, high-resolution destination photography. * **Geocoding**: OpenStreetMap Photon and Nominatim with native Android Geocoder fallbacks. * **Climate**: Open-Meteo REST API for live weather forecasts and packing recommendations.

---

#### 5. Complex Jetpack Compose State & Window Inset Nuances * **The Challenge**: Coordinating edge-to-edge rendering on Android 15/16 while managing dynamic questionnaire wizards, timeline reordering, and real-time chat overlays without keyboard occlusion or recomposition jank. * **How We Solved It**: We established a single-source-of-truth reactive pattern via `MainViewModel` and Kotlin `StateFlow`. We built custom utility components like `KeyboardAwareTextField` for IME compensation and `TactileButton` for haptic spring feedback, ensuring smooth 60fps interactions throughout.

## The problem it solves

### The Problem It Solves

Planning and coordinating travel today is fragmented, tedious, and stressful. Travelers routinely juggle **5–10 disconnected apps and browser tabs**—consulting travel blogs for recommendations, weather apps for forecasts, spreadsheets for itineraries, WhatsApp for group coordination, and Splitwise for settling bills.

Furthermore, static online itineraries fail to adapt to individual budgets, group dynamics, or real-time disruptions on the ground, while fragmented group chats frequently lead to miscommunication and awkward post-trip expense disputes.

---

### What People Can Use It For

  • **Automated AI Itinerary Generation**: Generate custom, multi-day, day-by-day travel schedules tailored to personal travel styles, group sizes, dietary requirements, and paces (Relaxed, Balanced, or Packed).
  • **Conversational In-Trip Concierge**: Chat naturally with an embedded AI assistant to dynamically reorder stops, discover alternative landmarks, or adjust plans when circumstances change.
  • **Live Destination Discovery**: Search any destination worldwide to instantly receive geocoded locations, seasonal weather forecasts, and authentic high-resolution photography.
  • **Fair Group Expense Splitting**: Log shared expenses across categories (Transport, Food, Accommodation, Activities) and calculate exact split balances and one-tap settlements among travel companions.
  • **Built-in Trip Messaging**: Coordinate plans, discuss stops, and stay aligned with travel companions through integrated real-time peer and group chat.

---

### 🛡️ How It Makes Travel Easier, Safer & Smarter

  • **Replaces 10+ Hours of Planning with Seconds**: Eliminates research fatigue by synthesizing curated attractions, timing, and travel logistics in a single tap.
  • **Offline Reliability & Low Latency**: Utilizes an intelligent two-layer cache (Local Room DB + Supabase Cloud Cache) to ensure itinerary details and saved destinations remain accessible even with poor connectivity abroad.
  • **Eliminates Financial Friction**: Keeps group finances transparent in real time, preventing budget overruns and awkward calculations at the end of the trip.
  • **Stress-Free Adaptability on the Road**: If a venue is closed or weather turns bad, users can adapt their itinerary on the fly without starting planning from scratch.
  • **All-in-One Single Source of Truth**: Consolidates research, navigation schedules, expenses, and group communication into one cohesive native experience.

Screenshots

Travel- Mate screenshot 1

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

PRICELESS MEMORIES

Plan smarter, travel better—AI-powered, real-time personalized itineraries with seamless bookings and group collaboration, all in one dynamic platform for unforgettable journeys.