Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Fluxora/haversine-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vincenty Distance Calculator

This Java program calculates the accurate distance between two points on the Earth's surface using the Vincenty formula. The Vincenty formula takes into account the Earth's oblate spheroid shape, providing more accurate results compared to the simple Haversine formula.

Usage

  1. Clone the repository or download the source code files.
  2. Open the project in your Java development environment.
  3. Run the VincentyDistance.java file.

The program will prompt you to enter the latitude and longitude values for two points. After providing the inputs, it will calculate and display the distance between the two points in kilometers.

Requirements

  • Java Development Kit (JDK) 8 or above.

Vincenty Formula

The Vincenty formula is an algorithm used to calculate the distance between two points on an oblate spheroid. It takes into account the flattening of the Earth and provides more accurate results compared to the simpler Haversine formula. The formula involves iterative calculations to converge on the accurate distance.

Limitations

  • The program assumes input coordinates provided in decimal degrees.
  • Proper validation and range checking should be implemented to handle invalid or out-of-range input values.

References

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%