Welcome to the "Where am I?" application! This web application determines your current location using the Geolocation API and fetches detailed information about the country you are in. Visualize country data such as the flag, population, language, and currency directly on the page.
- Allow Location Access: When prompted, allow the browser to access your location.
- Fetch Country Data:
- Click the button to initiate the process.
- The application will determine your current coordinates.
- It will then fetch and display information about your country.
- Geolocation: Use the Geolocation API to get the user's current position.
- Fetch Country Data: Retrieve country details using REST APIs based on the user's coordinates.
- Render Country Information: Display the flag, population, language, and currency of the country.
- Error Handling: Display error messages for any issues encountered during the process.
- Responsive Interface: User-friendly interface that adapts to different devices and screen sizes.
- HTML5
- CSS3
- JavaScript (ES6+)
- Geolocation API
- REST Countries Online API
To run the application locally, follow these steps:
- Clone this repository to your local machine.
- Open the
index.html
file in your web browser.
This application is licensed under the MIT License - see the LICENSE file for details.
This application is for educational purposes and personal use. The code provided is open-source, and you are free to use, modify, and distribute it as per the license agreement.
Enjoy exploring your location with "Where am I?" 🌍!