https://github.com/mdaltamashalam/ev-map-loads
A smart EV charger locator web app that allows users to search routes, scan for electric vehicle chargers, and visualize charger locations dynamically using Mapbox GL JS and the Open Charge Map API.
https://github.com/mdaltamashalam/ev-map-loads
api css html javascript js json mapbox mapbox-api mapbox-directions mapbox-gl-js media-queries
Last synced: about 1 month ago
JSON representation
A smart EV charger locator web app that allows users to search routes, scan for electric vehicle chargers, and visualize charger locations dynamically using Mapbox GL JS and the Open Charge Map API.
- Host: GitHub
- URL: https://github.com/mdaltamashalam/ev-map-loads
- Owner: mdaltamashalam
- Created: 2025-07-14T18:36:25.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-14T18:56:01.000Z (11 months ago)
- Last Synced: 2025-07-14T23:31:32.688Z (11 months ago)
- Topics: api, css, html, javascript, js, json, mapbox, mapbox-api, mapbox-directions, mapbox-gl-js, media-queries
- Language: HTML
- Homepage: http://ev-map-loads.s3-website-us-east-1.amazonaws.com/
- Size: 28.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# β‘ EV Charger Locator - Delhi & All India
A smart EV charger locator web app that allows users to **search routes**, **scan for electric vehicle chargers**, and **visualize charger locations** dynamically using **Mapbox GL JS** and the **Open Charge Map API**. Designed for **Delhi** and **all-India coverage**, this project emphasizes real-world deployment with smooth animations, mobile responsiveness, and premium UI/UX.
---
## Demo - Please Open in Laptop for Clear View of Hosted Project.
π [Live Demo (Optional if hosted)](http://ev-map-loads.s3-website-us-east-1.amazonaws.com/)
---
## Project Purpose
As electric vehicles grow across India, charger availability and discoverability become critical. This project solves that by:
- Helping EV drivers **scan and locate chargers** directly along a planned route.
- Providing a **visually interactive map-based interface**.
- Supporting **both Delhi-specific and pan-India exploration**.
---
## π Tech Stack
| Layer | Technology | Purpose |
|----------------|----------------------------------------------|----------------------------------------------|
| πΊοΈ Frontend | HTML, CSS, JavaScript | Responsive UI, charger visualization |
| π Maps | Mapbox GL JS, Mapbox Directions API | Map rendering, geocoding, route planning |
| π API | Open Charge Map API | Charger data retrieval |
| π¨ UI Design | Custom CSS (Media Queries) | Mobile-first design, controls, popups |
| βοΈ Hosting | GitHub Pages / Local | Lightweight frontend deployment |
---
## β¨ Features
- π **Input Start & End Points** via Geocoder
- πΊοΈ **Route Visualization** using Mapbox
- β‘ **Dynamic Scan** of nearby EV chargers within 5km radius along route
- π **Interactive Marker Popups** showing charger title, address, type, and power
- π‘ **Smart Animation** to simulate scanning and plotting
- π± **Fully Responsive** for mobile and desktop
---
## π§ How it Works
1. **User selects start and end location** using the Mapbox Geocoder.
2. The app fetches a **route** via Mapbox Directions API.
3. It **interpolates the route** into ~1km segments.
4. For each point:
- It queries Open Charge Map for **chargers within 5km**.
- Unique charger markers are added to the map with details.
5. The UI shows **scan progress** and **total chargers found**.
---
## π API Keys Used
| API | Description |
|------------------|---------------------------------|
| Mapbox Access | Map rendering, geocoding, routes |
| OpenChargeMap | EV charger data (OCM Key) |
---
## π§ Supported Locations
- β
**Delhi NCR**
- π **All India Compatible**
The app uses latitude/longitude and does **not limit to city boundaries**, making it scalable across India.
---
## β
Actions Taken
| Step | Task |
|------|------|
| 1οΈβ£ | Designed UI layout & responsiveness from scratch |
| 2οΈβ£ | Integrated Mapbox GL JS with route drawing |
| 3οΈβ£ | Connected Open Charge Map API for real-time data |
| 4οΈβ£ | Built animation logic for route-based charger detection |
| 5οΈβ£ | Optimized UX for mobile and desktop |
---
## π§© Challenges Solved
- Smooth real-time animation of route scans.
- Filtering duplicate charger results on overlapping segments.
- Balancing design for performance on lower-end devices.
---
## π· Screenshots
| Home Page | Route Scan Example |
|-----------|--------------------|

---
## π Future Enhancements
- βοΈ Backend integration with Node.js + MySQL (custom EV data)
- π§ AI/ML-based charger recommendation
- π§Ύ Filter by charger type, provider, power, availability
- π Analytics dashboard for charger usage
---
## π€ Contributing
Pull requests are welcome! For major changes, please open an issue first.
---
## License & Copyright
Β© 2025 Vintara Project Team. All rights reserved.
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
You are free to use, modify, and distribute this software under the terms of the MIT License. However, please give appropriate credit to the original authors and do not use this project for unlawful or unethical purposes.
---
**Note:**
- Redistribution of this code or any derived work must include this copyright notice.
- Commercial use is allowed under the license, but attribution is required.
- No warranty is provided. Use at your own risk.
For any questions about licensing, please contact the project maintainers.
---
## π Made with β€οΈ by [Md Altamash Alam](https://github.com/mdaltamashalam)