Coder Social home page Coder Social logo

dovineowuor / air-distance-claculator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 13 KB

Home Page: https://air-distance-location.doveowuor.repl.co/

HTML 52.33% Nix 0.59% JavaScript 33.08% CSS 14.00%
arcgis arcgis-js-api backend frontend fullstack-development geolocation geospacial geospatial-data html-css-javascript html5 js wea webdevelopment

air-distance-claculator's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.