Skip to content

Swetha-Arul/trip-planner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Trip Planner πŸ—ΊοΈ

Trip Planner is a modern travel planning web application designed to make road trips smarter, easier, and more interactive. Users can generate optimized routes, explore nearby places, monitor live weather conditions, and navigate using an interactive Google Maps interface with real-time guidance.

Built using HTML, CSS, JavaScript, PHP, MySQL, Google Maps APIs, and OpenWeather API.

✨ Features

πŸš— Smart Route Planning

  • Generate optimized routes between locations
  • Add multiple stops during trips
  • View alternate routes
  • Live traffic visualization
  • Interactive turn-by-turn directions

πŸ“ Real-Time Navigation

  • GPS location tracking
  • Distance and travel-time calculation
  • Voice-guided navigation
  • Route instruction panel

🌦️ Weather Integration

  • Live weather information using OpenWeather API
  • Weather-aware route filtering
  • Avoid rainy or extreme-temperature areas

🍽️ Nearby Place Discovery

  • Restaurants
  • Hotels
  • Fuel stations
  • Tourist attractions

🎨 Modern UI/UX

  • Responsive landing page
  • Mobile-friendly sidebar navigation
  • Smooth animations and transitions
  • Fully functional dark mode

πŸ” User Authentication

  • Login and Signup system
  • Password hashing using PHP
  • MySQL database integration

πŸ› οΈ Tech Stack

Frontend

  • HTML
  • CSS
  • JavaScript

Backend

  • PHP

Database

  • MySQL

APIs Used

  • Google Maps JavaScript API
  • Google Places API
  • Google Directions API
  • OpenWeather API

πŸ“‚ Project Structure

trip-planner/
β”‚
β”œβ”€β”€ Backend/
β”‚   β”œβ”€β”€ login.php
β”‚   └── signup.php
β”‚
β”œβ”€β”€ Mainpage/
β”‚   β”œβ”€β”€ MainPage.html
β”‚   └── MainPage.css
β”‚
β”œβ”€β”€ map/
β”‚   β”œβ”€β”€ map.html
β”‚   β”œβ”€β”€ map.css
β”‚   └── map.js
β”‚
β”œβ”€β”€ darkmode/
β”‚   β”œβ”€β”€ darkmode.css
β”‚   β”œβ”€β”€ darkmode.js
β”‚   └── darkmodemap.js
β”‚
β”œβ”€β”€ signuplogin/
β”‚
β”œβ”€β”€ screenshots/
β”‚
β”œβ”€β”€ pics/
β”‚
β”œβ”€β”€ config.sample.js
└── README.md

▢️ Running the Project with XAMPP

1️⃣ Move Project Folder

Move the project into your XAMPP htdocs directory:

C:\xampp\htdocs\trip-planner

2️⃣ Start Apache and MySQL

Open the XAMPP Control Panel and start:

  • Apache
  • MySQL

3️⃣ Create Database

Open:

http://localhost/phpmyadmin

Create a database named:

trip_planner

Run this SQL query:

CREATE TABLE users (
    id INT AUTO_INCREMENT PRIMARY KEY,
    name VARCHAR(100),
    username VARCHAR(100),
    email VARCHAR(100) UNIQUE,
    password VARCHAR(255)
);

4️⃣ Configure Database Credentials

Inside:

Backend/login.php
Backend/signup.php

Replace the placeholder values:

$dbPassword = "YourPassword";
$dbname = "YourDatabaseName";

with your actual MySQL database credentials.


5️⃣ Configure API Keys

Create a file named:

config.js

Add your API keys:

const GOOGLE_API_KEY = "YOUR_GOOGLE_API_KEY";
const WEATHER_API_KEY = "YOUR_OPENWEATHER_API_KEY";

6️⃣ Run the Application

Open in browser:

http://localhost/trip-planner/Mainpage/MainPage.html

πŸ“Έ Highlights

  • Interactive Google Maps integration
  • Dark mode support
  • Responsive UI
  • Real-time navigation
  • Route preference customization
  • Nearby places discovery
  • Weather-aware trip planning
  • Authentication system

πŸš€ Future Improvements

  • AI-based trip recommendations
  • Saved trip history
  • Expense tracking
  • Collaborative trip planning
  • Public transport integration
  • Real-time travel assistant

🀝 Contributing

Contributions are welcome.

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License.


πŸ‘©β€πŸ’» Developer

Created by Swetha-Arul

About

Trip-Planner is a modern web-based travel assistant that helps you plan smarter journeys with dynamic route planning, live GPS tracking, nearby points of interest discovery, and voice-guided navigation, all in an intuitive, map-driven interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors