8000 GitHub - Rondleysg/route-finder: This routing project exemplifies the use of pathfinding algorithms as efficient solutions to discover optimized paths in graphs. We implement algorithms such as Dijkstra, A* and Nearest Neighbor, providing a practical visualization of the differences between them.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This routing project exemplifies the use of pathfinding algorithms as efficient solutions to discover optimized paths in graphs. We implement algorithms such as Dijkstra, A* and Nearest Neighbor, providing a practical visualization of the differences between them.

Notifications You must be signed in to change notification settings

Rondleysg/route-finder

Repository files navigation

Forks Stargazers Issues LinkedIn


Vite React Typescript Google Cloud


Logo

Route Finder

An interactive application to visualize and compare graph routing algorithms.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Features
  5. Contributing
  6. Contact

About The Project

Demo Screen Shot

Route-Finder is an interactive web application for visualizing and comparing graph-based routing algorithms. Users can add real-world waypoints on the map and analyze how different algorithms (A* and Nearest Neighbor) compute the optimal path.

(back to top)

Built With

This project was developed with the following main technologies:

  • Vite
  • React
  • Typescript
  • Google Cloud

(back to top)

Getting Started

Prerequisites

To run the project, you need to have installed:

  • Node.js
  • NPM or Yarn

Installation

Instructions to install dependencies and start the project.

  1. Get a free Google Maps API Key at https://developers.google.com/maps

  2. Clone the repo

    git clone https://github.com/Rondleysg/route-finder.git
  3. Navigate to the project folder

    cd route-finder
  4. Install dependencies

    yarn
  5. Configure environment variables by adding .env.local file to the project root

    VITE_GOOGLE_MAPS_API_KEY=ENTER YOUR API KEY HERE
    VITE_RENDER_MAP=true

(back to top)

Usage

Instructions to run the project locally and use it.

  1. Run the project locally

    yarn dev
  2. Access the application in your browser (normally at the address below)

    http://localhost:5173/
  3. If you prefer, you can load a predefined route by clicking the Load button, or manually add the route's starting point and its waypoints.

(back to top)

Features

  • Ability to change route visualization between A* and Nearest Neighbor algorithms.
  • Visualize the computed route with clear path highlighting.
  • View the total distance (in meters) of the route.
  • Export the generated route to Google Maps for navigation.
  • Add an address (waypoint) to the route.
  • Add an address (waypoint) by clicking directly on the map.
  • View list of addresses added to route.
  • Remove an address (waypoint) from the route.

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/new-feature)
  3. Commit your Changes (git commit -m 'feature: new feature')
  4. Push to the Branch (git push origin feature/new-feature)
  5. Open a Pull Request

Top contributors:

contrib.rocks image

(back to top)

Contact

Rondley Gregório - @rondleyg - rondleyemail@gmail.com

Project Link: https://github.com/Rondleysg/route-finder

(back to top)

About

This routing project exemplifies the use of pathfinding algorithms as efficient solutions to discover optimized paths in graphs. We implement algorithms such as Dijkstra, A* and Nearest Neighbor, providing a practical visualization of the differences between them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0