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.
- Generate optimized routes between locations
- Add multiple stops during trips
- View alternate routes
- Live traffic visualization
- Interactive turn-by-turn directions
- GPS location tracking
- Distance and travel-time calculation
- Voice-guided navigation
- Route instruction panel
- Live weather information using OpenWeather API
- Weather-aware route filtering
- Avoid rainy or extreme-temperature areas
- Restaurants
- Hotels
- Fuel stations
- Tourist attractions
- Responsive landing page
- Mobile-friendly sidebar navigation
- Smooth animations and transitions
- Fully functional dark mode
- Login and Signup system
- Password hashing using PHP
- MySQL database integration
- HTML
- CSS
- JavaScript
- PHP
- MySQL
- Google Maps JavaScript API
- Google Places API
- Google Directions API
- OpenWeather API
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.mdMove the project into your XAMPP htdocs directory:
C:\xampp\htdocs\trip-plannerOpen the XAMPP Control Panel and start:
- Apache
- MySQL
Open:
http://localhost/phpmyadminCreate a database named:
trip_plannerRun 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)
);Inside:
Backend/login.php
Backend/signup.phpReplace the placeholder values:
$dbPassword = "YourPassword";
$dbname = "YourDatabaseName";with your actual MySQL database credentials.
Create a file named:
config.jsAdd your API keys:
const GOOGLE_API_KEY = "YOUR_GOOGLE_API_KEY";
const WEATHER_API_KEY = "YOUR_OPENWEATHER_API_KEY";Open in browser:
http://localhost/trip-planner/Mainpage/MainPage.html- Interactive Google Maps integration
- Dark mode support
- Responsive UI
- Real-time navigation
- Route preference customization
- Nearby places discovery
- Weather-aware trip planning
- Authentication system
- AI-based trip recommendations
- Saved trip history
- Expense tracking
- Collaborative trip planning
- Public transport integration
- Real-time travel assistant
Contributions are welcome.
- Fork the repository
- Create a new branch
- Commit your changes
- Open a Pull Request
This project is licensed under the MIT License.
Created by Swetha-Arul