Skip to content

Dovineowuor/Air-Distance-Claculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air Distance Calculator

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.

Features

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

Getting Started

Prerequisites

To run the Air Distance Calculator, make sure you have the following installed on your system:

  • Python 3.x

Installation

  1. Clone the repository:

    git clone https://github.com/Dovineowuor/Air-Distance-Claculator.git
  2. Navigate to the project directory:

    cd Air-Distance-Claculator
  3. Run the program:

    RUN YOUR PROGRAM ON LOCAHOST
    

Usage

  1. Enter the latitude and longitude coordinates for the starting location.
  2. Enter the latitude and longitude coordinates for the destination location.
  3. Select the unit of measurement (kilometers or miles) to display the distance.
  4. The program will calculate and display the air distance between the two locations.

Examples

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.

Contributing

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.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Acknowledgements

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.