The Air Distance Calculator is a simple HTML/CSS/JS program that calculates the distance between two locations on the Earth using their latitude and longitude coordinates. It utilizes the Haversine formula to accurately calculate the shortest distance between two points on a sphere.
- Calculate the air distance between two locations specified by latitude and longitude coordinates.
- Provide inputs in decimal degrees format for latitude and longitude.
- Display the distance in kilometers (km) or miles (mi).
To run the Air Distance Calculator, make sure you have the following installed on your system:
- Python 3.x
-
Clone the repository:
git clone https://github.com/Dovineowuor/Air-Distance-Claculator.git
-
Navigate to the project directory:
cd Air-Distance-Claculator
-
Run the program:
RUN YOUR PROGRAM ON LOCAHOST
- Enter the latitude and longitude coordinates for the starting location.
- Enter the latitude and longitude coordinates for the destination location.
- Select the unit of measurement (kilometers or miles) to display the distance.
- The program will calculate and display the air distance between the two locations.
Enter the latitude and longitude for the starting location:
Latitude: 51.5074
Longitude: -0.1278
Enter the latitude and longitude for the destination location:
Latitude: 48.8566
Longitude: 2.3522
Select the unit of measurement:
1. Kilometers
2. Miles
Choice: 1
The air distance between the two locations is 342.16 km.
Contributions to the Air Distance Calculator project are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.
The Air Distance Calculator project is inspired by the Haversine formula and serves as a simple demonstration of its implementation in Python.
Feel free to customize this README file according to your project's specific details, instructions, and requirements.