GitHub - SSaksit23/map-intelligent

Voyage AI - AI-Powered Trip Planner

A beautiful trip planning application built with Next.js, mapcn (MapLibre), and Google Gemini AI.

Voyage AI

Features

  • πŸ—ΊοΈ Interactive Maps - Beautiful map interface powered by mapcn and MapLibre
  • πŸ€– AI-Powered Planning - Use Google Gemini to generate trip itineraries from natural language
  • πŸ“ Multi-Stop Routes - Add multiple destinations and see driving routes between them
  • πŸ“Š Trip Statistics - View total distance and estimated travel time
  • πŸŒ“ Dark/Light Mode - Automatic theme switching based on system preference
  • πŸ” Location Search - Search for any location using OpenStreetMap/Nominatim

Getting Started

Prerequisites

Installation

  1. Clone the repository and navigate to the project:
  1. Install dependencies:
  1. Create a .env.local file in the root directory:
GEMINI_API_KEY=your_gemini_api_key_here
  1. Start the development server:
  1. Open http://localhost:3000 in your browser.

Usage

Basic Location Search

Type a location name in the search bar and click on a result to add it to your trip.

AI Trip Planning

Use natural language to plan your trip:

  • "Plan a 3-day trip to Paris"
  • "Road trip from Los Angeles to San Francisco"
  • "Best attractions in Tokyo"
  • "Weekend getaway in New York City"

The AI will suggest locations, provide descriptions, and automatically add them to your map.

Managing Your Trip

  • Click on a stop in the sidebar to highlight it on the map
  • Click the trash icon to remove a stop
  • Routes and distances are calculated automatically between stops

Tech Stack

API Routes

  • POST /api/gemini - Process natural language queries with Gemini AI
  • GET /api/geocode?q=<query> - Geocode location names to coordinates

Credits