Welcome to the Journey Optimization project! This tool helps commuters find the optimal travel route between two points using a map interface. The project uses algorithms like A* to calculate the most efficient route, whether you're optimizing for time, distance, or cost.
Journey Optimization is a tool designed to make travel easier by calculating the fastest, shortest, or cheapest routes. It allows users to:
- Select start and end points on an interactive map.
- Calculate the best route based on selected preferences.
- Visualize the route and key details like estimated time, distance, and potential costs.
Whether you're a commuter or just looking to plan a trip efficiently, this tool helps you make data-driven travel decisions.
- Interactive Map: Choose your starting and ending points by clicking on a map.
- Pathfinding Algorithm: Uses the A* algorithm to calculate the optimal path.
- Map Integration: Built using Leaflet.js to display routes interactively.
- Customizable Preferences: Choose what to optimize—time, distance, or cost.
Before you begin, ensure you have the following installed:
- Python 3.7+
- pip (Python package manager)
-
Clone the repository:
git clone https://github.com/yourusername/journey-optimization.git cd journey-optimization -
Install dependencies: Install the required Python packages using the requirements.txt file:
pip install -r requirements.txt
-
Run the Flask app: Start the Flask server to run the web application:
python app.py
-
View the app in your browser: Open your browser and enjoy.
Start the app: Open the app in your browser after running the server. Select start and end points: Click on the map to place markers for your starting and ending points. Find Route: Click the Find Route button to calculate the optimal route. Reset Map: You can reset the map and start over by clicking the Reset button.
This project is licensed under the MIT License - see the LICENSE file for details.