This project is a location-based product purchasing system that calculates the distance between the user's current location and a store. If the user is more than 100 km away from the store, a popup will appear to alert them.
- Track User Location: The system tracks the user's current location using browser geolocation.
- Distance Calculation: The distance between the user and the store is calculated using the Haversine formula.
- Popup Notification: If the user is more than 100 km from the store, a popup will appear with a notification.
- Store Location: The store's location is fixed (for example, in Dhaka), but can be customized.
- HTML: Structure of the page and product details.
- CSS: Styling of the product page and popup.
- JavaScript: For location tracking, distance calculation, and managing the popup.
- Google Maps API: To display the store's location and track the user's location.
To run this project locally, follow these steps:
- Google Maps API Key: You need to have a valid Google Maps API key to load the map and use the geolocation service. Get your API key from Google Cloud Console.
- Clone this repository to your local machine:
git clone https://github.com/your-username/your-repository-name.git
