Skip to content

pyschonoice/simple_journey_optimization

Repository files navigation

🚀 Journey Optimization

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.


🗺️ What is Journey Optimization?

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.


⚙️ Features

  • 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.

🛠️ Installation

Prerequisites

Before you begin, ensure you have the following installed:

  • Python 3.7+
  • pip (Python package manager)

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/yourusername/journey-optimization.git
    cd journey-optimization
  2. Install dependencies: Install the required Python packages using the requirements.txt file:

    pip install -r requirements.txt
  3. Run the Flask app: Start the Flask server to run the web application:

    python app.py
  4. View the app in your browser: Open your browser and enjoy.

🚀 How to Use

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.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published