{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics"},{"label":"GIS","url":"https://skillfed.io/packages/category/scientific-engineering-gis"}],"enrichment":{"capability":"Calculates great-circle distances between geographic coordinates on Earth using the haversine formula, supporting multiple distance units and optional vector operations.","skillfed_tags":["geospatial","distance-calculation","gis"],"use_cases":["Calculate driving or travel distances between cities or landmarks for routing or trip planning applications.","Filter nearby locations from a database by computing distances from a user's current position.","Batch-compute pairwise distances between many geographic points for clustering or spatial analysis.","Validate geographic coordinates or detect anomalies by checking distances between consecutive GPS readings.","Find the closest facility (store, hospital, etc.) to a given location by comparing distances to multiple candidates."],"what_it_does":"Haversine is a lightweight Python library that computes the shortest distance between two points on Earth given their latitude and longitude coordinates. It implements the haversine formula, which calculates great-circle distances on a sphere, and supports output in kilometers, meters, miles, nautical miles, feet, inches, radians, and degrees. The package also provides an inverse haversine function to find a destination point given a starting point, distance, and direction.\n\nThe core use case is straightforward: pass two (lat, lon) tuples and get a distance back. For bulk operations, the library offers a vector mode that can compute distances between multiple point pairs; this mode optionally uses NumPy for performance and can be further accelerated with Numba and icc_rt. The package is pure Python with no mandatory dependencies, making it easy to integrate into any project that needs basic geographic distance calculations.","worth_installing":"Yes. Haversine is a stable, dependency-free library for a common task. It has no known vulnerabilities, permissive licensing, and low install friction. The aging maintenance status (624 days since last release) is not a blocker for a mature, narrow-scope library\u2014the formula itself does not change. Install it if you need to calculate distances between geographic coordinates; skip it only if you require more advanced geodetic calculations or are already using a larger geospatial framework."},"id":"haversine","links":{"html":"https://skillfed.io/packages/haversine","md":"https://skillfed.io/packages/haversine.md","pypi":"https://pypi.org/project/haversine/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-11-28","license_spdx":null,"license_treatment":"permissive","name":"haversine","python_support":"supports_current","summary":"Calculate the distance between 2 points on Earth."},"popularity":{"monthly_downloads":3963740,"position":2434,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.9.0"}
