Building a Python Itinerary Generator with AI

Learn how to create a standalone Python itinerary planning tool using AI and location scraping.

By Casey Builds It ยท YouTube Video cNigjD-GZfI

Watch the video

What is the main goal of this project?

The project aims to create a standalone Python itinerary planning tool from scratch. It tests the tool's ability to dynamically pull location-based ideas instead of relying on pre-scraped data.

What tools are used to build this itinerary generator?

The build session uses Cursor for coding and Google Gemini 2.5 Flash as the AI model. Location data is scraped from sources like OpenStreetMap, Wikipedia, and DuckDuckGo.

What core features are defined for the itinerary tool?

The core features include date selection, specifying adult/kid/dog counts, budget preferences, custom activity requests, and PDF export functionality.

How is location data scraped for the itinerary?

The tool scrapes real businesses, restaurants, and activities from sources like OpenStreetMap, Wikipedia, and DuckDuckGo for a given location.

What are the options for location data scraping?

The video discusses the pros and cons of using free scraping methods versus paid APIs like Google Places for obtaining location data.

What are some ideas for enhancing the itinerary tool?

Potential enhancements include integrating a weather API, adding GPS-based distance filtering, and incorporating event APIs for concerts and local happenings.

What is 'vibe-coding' as mentioned in the video?

Vibe-coding refers to the real, unfiltered process of coding within Cursor, including debugging and exploring the capabilities of LLMs for practical app development.

How can I get the finished itinerary tool?

The finished tool will be uploaded to the free tools section of the Casey Builds It website, allowing you to download it and customize it with your own Google API key.

What are the cost considerations for using APIs?

The video touches upon API costs, comparing options like Gemini Flash versus Claude and discussing the implications of using paid versus free scraping methods.

Can the tool handle different types of travelers?

Yes, the tool allows users to specify counts for adults, kids, and even dogs, suggesting it can cater to various group compositions.

What kind of output does the tool generate?

The tool can generate an itinerary and has functionality for PDF export, allowing users to save and review their planned trips.

How does the tool handle custom activity requests?

Users can input custom activity requests, and the AI, combined with location scraping, will attempt to incorporate these into the generated itinerary.

What is the role of Cursor in this build?

Cursor is used as the primary IDE for the build session, facilitating the coding process and integrating with AI models like Gemini for assistance.

What is the benefit of using Gemini 2.5 Flash?

Gemini 2.5 Flash is used as the AI model to help generate itinerary ideas and potentially assist with code generation and problem-solving during the build.

Related guides for these FAQs:

Build your own AI-powered travel planner with Python and Cursor.