We are developing a pathfinding visualizer, based on the project above: https://github.com/0kzh/pathfinding-visualizer?tab=readme-ov-file
This application will allow analysis and observation of pathfinding using several different algorithms.
You will need to download Node.js and npm. Node.js is an open-source cross-platform, Javascript runtime enviroment. npm is the default package manager for Javascript's runtime Node.js
Learn more about Node.js and npm here:
- https://nodejs.org/en - official Node.js Docs
- https://www.freecodecamp.org/news/what-is-npm-a-node-package-manager-tutorial-for-beginners/
- https://docs.npmjs.com/downloading-and-installing-node-js-and-npm - installation guide
Once you have successfully downloaded Node.js and npm
Clone the remote repository in a folder on your local machine using:
git clone https://github.com/rKamindo/pathfinding-visualizer
Navigate to the folder where the repository was cloned.
First install all the dependencies of the project:
npm install
Next, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the application running on your local machine
To generate the data for pathfinding, follow these steps:
- Download OSM Data: Visit BBBike and select your desired region or area of interest. Choose the format "OSM PBF raw data" and download the file for the location you wish.
To run the pathfinding script, follow these steps:
-
Ensure you have Python installed on your system. If not, you can download and install it from the official Python website.
-
Clone or download the repository containing the script to your local machine.
-
Navigate to the directory containing the map_parser.py script
cd scripts
-
Run the following command in your terminal to install the required dependencies listed in the
requirements.txt
file:pip install -r requirements.txt
-
Run the script: Execute the map parser script with the OSM PBF file as input. (For convenience, I )
python map_parser.py <osm_file>
Next.js, React, Typescript
- Leaflet - learn about Leaflet
- React Leaftlet - learn more about React Leaflet
- React Documentation - learn about React
- Learn React - learn the foundations of React
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.