AI-Itinerary Assistant (AIIA)

Introduction

AIIA (AI-Itinerary Assistant) is a web application that streamlines trip planning by combining Google Maps Platform services and AI (Gemini) to provide intelligent, personalized travel itineraries. Users can plan trips based on their preferences, discover interesting stops along their route, and receive AI-generated summaries and recommendations, all in a single interface.

Project’s Inspiration & History

The idea for AIIA originated from a personal travel planning experience. Faced with a long weekend, the goal was to organize a scenic beach getaway. However, planning wasn’t just about picking a destination, it also meant ensuring the route had convenient, family-friendly stopovers like gas stations, restaurants, and coffee shops.

Searching manually for well-rated establishments along the route became a cumbersome and time-consuming task. The process involved browsing maps, reading reviews, checking availability, and manually compiling data into a spreadsheet. This highlighted a key problem: existing tools were fragmented and not route-aware when it came to Points of Interest (POIs).

This inspired the creation of AIIA, an app that leverages AI and Google Maps Platform APIs to intelligently recommend stops, build custom routes, and personalize travel experiences based on user prompts.

Project Overview: What it does

Objective:

  • Consolidate trip itinerary planning and management into one easy-to-use application.
  • Utilize AI to generate summaries of places based on user-defined preferences.
  • Allow users to filter POIs based on their interests.
  • Provide multiple route recommendations from inputted origins and destinations.
  • Simplify travel planning by automatically suggesting routes and experiences/stopovers tailored to user preferences.

Audience:

  • Travelers (individuals, families, road trip enthusiasts)
  • Travel planners and itinerary organizers
  • Users seeking personalized travel experiences

How We Built It: Technologies Used

  • Frontend: React + Vite + MUI
  • Google Technologies:
    • Google Maps JavaScript API
    • Google Maps Routes API
    • Google Maps Places API (new)
    • Google Maps Geocoding API
  • AI Technology: Google Gemini

Google Maps Platform Usage

1. Maps JavaScript API: The Maps JavaScript API forms the interactive visual foundation of the AI-Itinerary Assistant, enabling users to explore routes and POIs dynamically. It facilitated:

  • Real-time rendering of customized interactive maps using specific Map IDs for enhanced visual styling.
  • Adding dynamic markers to indicate points of interest (POIs), polylines representing travel routes, and interactive info windows to deliver detailed location information.
  • Supporting intuitive user interactions, such as clicking and selecting map markers to navigate and explore relevant locations seamlessly.
  • Overlaying custom graphical elements to further enrich user experience.

Reason for Selection: Chosen for its flexibility, ease of integration, and extensive customization options, this API provides a responsive and visually engaging map experience necessary for planning complex itineraries.

2. Routes API: The Routes API powers the core routing functionality of the application, responsible for computing and visualizing optimal paths between origin, destination, and any number of waypoints. It supports:

  • Computing precise and optimal driving routes based on user-specified origins, destinations, and waypoint stops.
  • Decoding and visually displaying detailed polyline representations of routes on interactive maps.
  • Dynamically updating routes based on user interactions or preference adjustments.

Reason for Selection: Selected for its ability to efficiently generate accurate, customizable routes and visually represent complex route information clearly and reliably to end-users.

3. Places API: The Places API enhanced the application's search capabilities by intelligently suggesting and filtering relevant establishments along user-defined routes. It powered:

  • Autocomplete functionality for quick and accurate prediction of location search inputs (origin and destination)
  • Discovery of nearby establishments and POIs filtered by type (e.g., coffee shops, gas stations, attractions) and user-defined prompts.
  • Delivering contextually relevant place information, such as ratings, reviews, and establishment types, directly within the map interface.

Reason for Selection: Essential for dynamically surfacing and refining relevant location data tailored specifically to user interests, significantly improving overall planning convenience and accuracy.

4. Geocoding API: The Geocoding API was utilized to precisely associate map interactions with detailed address information, enhancing user comprehension and interaction. It enabled:

  • Reverse geocoding capabilities to retrieve comprehensive address information from user-selected geographic coordinates (latitude and longitude).
  • Precise identification and referencing of locations directly from map clicks, ensuring accurate and meaningful user interactions.

Reason for Selection: Provides crucial support for spatial awareness and accuracy, giving users confidence in the specific places they select or view.

5. Gemini (Generative AI): Gemini AI serves as the intelligent recommendation engine at the core of the AI-Itinerary Assistant, interpreting user preferences to generate context-aware POI recommendations. Its integration enabled:

  • Semantic understanding of user-inputted prompts for intelligent and contextually relevant place recommendations.
  • Filtering POIs specifically along computed route paths, providing highly targeted and personalized results.
  • Generating customized summaries and recommendations, significantly streamlining user itinerary planning and reducing manual search efforts.

Reason for Selection: Chosen for its advanced generative AI capabilities, providing intelligent, user-context-aware recommendations and significantly enhancing overall user experience and personalization.

Key Learnings

  • Google Places API combined with Gemini's text search is limited to 20 results per page; implementing pagination via nextPageToken is essential to access additional results.
    Integrating Gemini’s experimental capabilities with the Places API requires specifying the 'beta' version explicitly during Maps library initialization.

Key Differentiators

  • AI-Driven Personalization: Unlike traditional mapping or travel-planning apps, AIIA leverages Gemini AI, offering unique, tailored POI recommendations along travel routes.
  • Dynamic POI Filtering: Users have complete control over the displayed POIs, driven directly by personalized input prompts.
  • Route Flexibility & Customization: Users can easily modify routes, adjusting selected stopovers based on real-time recommendations.
  • Comprehensive User Reviews & Ratings: Integrates authentic user ratings and reviews directly from Google’s extensive data sources, enabling informed decision-making.

Conclusion

AI-Itinerary Assistant (AIIA) efficiently addresses the complexities of personalized travel planning. By effectively leveraging Google Maps Platform (Maps JavaScript API, Routes API, Places API, and Geocoding API) combined with Gemini’s generative AI capabilities, AIIA transforms trip-planning processes from manual and tedious tasks into streamlined, interactive, and personalized experiences.

What's Next

Adding Google's Weather API and Environment API's will allow for a well informed and better user experience when planning to go to a specific place.

Built With

  • google-gemini
  • google-maps-geocoding-api
  • google-maps-javascript-api
  • google-maps-places-api(new)
  • google-maps-routes-api
  • mui
  • react
  • vite
Share this project:

Updates