https://github.com/jeevan-2005/vehicle-movement-map
This web application visualizes vehicle movement on a map using the Leaflet library. The app also provides route directions, a reset feature for recalculating routes, and a geolocation feature to get your current location.
https://github.com/jeevan-2005/vehicle-movement-map
create-react-app geolocation html5 leaflet leaflet-routing-machine react react-leaflet tailwindcss
Last synced: about 1 month ago
JSON representation
This web application visualizes vehicle movement on a map using the Leaflet library. The app also provides route directions, a reset feature for recalculating routes, and a geolocation feature to get your current location.
- Host: GitHub
- URL: https://github.com/jeevan-2005/vehicle-movement-map
- Owner: jeevan-2005
- Created: 2024-08-13T09:09:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-14T12:38:47.000Z (over 1 year ago)
- Last Synced: 2025-07-01T07:05:57.978Z (9 months ago)
- Topics: create-react-app, geolocation, html5, leaflet, leaflet-routing-machine, react, react-leaflet, tailwindcss
- Language: JavaScript
- Homepage: https://vehicle-movement-map.vercel.app
- Size: 385 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vehicle Movement on Map Web Application
This web application visualizes vehicle movement on a map using the Leaflet library. Users can select two points on the map to find the shortest path, with a car marker animating along the route every 200ms. The app also provides route directions, a reset feature for recalculating routes, and a geolocation feature to get your current location.
## Features
- **Shortest Path Calculation**: Select two points on the map to calculate the shortest route between them.
- **Animated Car Marker**: A car marker runs along the selected route at 200ms intervals.
- **Route Directions**: Directions are provided for the selected route.
- **Route Reset**: Reset the route and select new points.
- **GeoLocation**: Get your current location and center the map.

## Tech Stack
- **React (Create React App)**: Frontend framework for building the application.
- **Leaflet**: For map integration and visualization.
- **React Leaflet**: React components for Leaflet maps.
- **leaflet-routing-machine**: For calculating routes and directions on the map.
- **HTML5**: For structuring the web pages.
- **Tailwind CSS**: For styling the application.
- **MUI Material**: For UI components and design consistency.
## Getting Started
Follow these instructions to set up the project on your local machine.
### Prerequisites
Make sure you have [Node.js](https://nodejs.org/) installed on your machine.
## Installation
To get a local copy up and running, follow these simple steps:
1. **Clone the repository**:
```sh
git clone https://github.com/jeevan-2005/vehicle-movement-map.git
```
2. **Navigate to the project directory**:
```sh
cd vechile-movement-map
```
3. **Install dependencies**:
```sh
npm install
```
4. **Start the application**:
```sh
npm start
```
## Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
1. Fork the Project.
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`).
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`).
4. Push to the Branch (`git push origin feature/AmazingFeature`).
5. Open a Pull Request.