pygeodist
is a lightweight and efficient library that provides functions to calculate the distance between two geographical points using their latitude and longitude coordinates.- It utilizes the Haversine formula to accurately compute distances on the Earth's surface.
You can include the library in your project using one of the following methods:
pip install pygeodist
from geodistance.point import Point
from geodistance.main import calculate_distance
point1 = Point(41.19,65.85)
point2 = Point(29.19,16.85)
print(calculate_distance(point1,point2))
point1 = Point(3,3)
point2 = Point(6,12)
print(calculate_distance(point1,point2, "m"))
- Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. For major changes, it is recommended to first open a discussion to discuss the proposed changes.
- This library is distributed under the MIT License. See the LICENSE file for more information.
-
For any questions or inquiries, please contact at @HarshPanchal18
-
Feel free to customize and expand this template to provide more details about your library and its functionalities.