Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.72 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.72 KB

Where am I? Application

Description

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.

How to Use

  1. Allow Location Access: When prompted, allow the browser to access your location.
  2. 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.

Features

  • 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.

Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6+)
  • Geolocation API
  • REST Countries Online API

Getting Started

To run the application locally, follow these steps:

  1. Clone this repository to your local machine.
  2. Open the index.html file in your web browser.

License

This application is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

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?" 🌍!