Inspiration
Trax AI was inspired by the need for travelers to make well-informed decisions about their trips based on weather conditions. By integrating weather forecasts with travel itinerary planning, we aim to simplify the travel planning process and enhance the overall experience for users.
What it does
Trax AI allows users to:
- Select a location and specify a date range.
- Fetch weather data for the selected dates using the OpenWeatherMap API.
- Generate a travel itinerary based on the weather data using the Gemini API.
- View the results in a structured JSON format, making it easy to understand and integrate into other applications.
How I built it
- Frontend:
- Developed using Next.js to create a responsive and user-friendly interface.
- Used React for building components and managing state.
- Implemented Tailwind CSS for styling the application.
- Backend:
- Created API routes in Next.js to handle weather data retrieval and itinerary generation.
- Utilized the OpenWeatherMap API to fetch weather forecasts and the Gemini API for generating itineraries.
- Implemented server-side logic to filter and process weather data according to user input.
- Deployment:
- Deployed the application using Vercel for seamless integration and easy scaling.
Challenges I ran into
- Date Range Handling: Initially struggled with correctly filtering weather data to match the user’s selected date range.
- API Limitations: Dealt with the limitations of the OpenWeatherMap API, which provides forecasts for only up to 5 days ahead.
- Time Zone Issues: Managed to ensure that all dates and times are handled in the user's local timezone to provide accurate results.
Accomplishments that I'm proud of
- Successfully integrated two APIs (OpenWeatherMap and Gemini) to provide a comprehensive travel planning solution.
- Implemented robust date handling and data filtering to ensure accurate results for users.
- Created a clean and intuitive user interface that makes it easy for users to plan their trips.
What I learned
- Gained experience in integrating multiple APIs to create a cohesive application.
- Improved understanding of date and time handling in JavaScript, particularly with respect to different time zones.
- Enhanced skills in building and deploying Next.js applications with modern styling techniques using Tailwind CSS.
What's next for Trax AI
- Expand Forecast Range: Explore options for integrating additional weather data sources to provide longer-term forecasts.
- User Authentication: Implement user authentication and profiles to allow users to save and manage their travel plans.
- Enhanced Itineraries: Improve itinerary generation with more detailed recommendations and local attractions based on user preferences.
- Mobile Optimization: Enhance mobile responsiveness and usability for better performance on various devices.
Built With
- gemini
- next-js
- openweathermap

Log in or sign up for Devpost to join the conversation.