Geolocation Distance Calculator
Project Description This project uses the Browser Geolocation API to get the user's current location and calculate the distance between it and another city. The distance is displayed clearly on the page with a clean and interactive interface.
Features
- Access user's location with permission handling
- Calculate distance between two points
- Display distance on the page
- Styled with TailwindCSS
How to Use
- Open the index.html file in a browser
- Allow location access
- Enter the city name or location
- Click "Calculate" and see the distance displayed automatically
Presentation Video Watch the demo here: https://youtu.be/nE1pfztbYMQ
Technologies Used
- HTML, TailwindCSS, JavaScript
- Browser Geolocation API
- Leaflet.js
- OpenStreetMap (Nominatim API) Author Brian HIRWA