Skip to main content

Calculate the distance (in km or in miles) bewteen two points on Earth, located by their latitude and longitude.

Example: distance bewteen Lyon and Paris

>>> from haversine import haversine
>>> lyon = (45.7597, 4.8422)
>>> paris = (48.8567, 2.3508)
>>> haversine(lyon, paris)
392.00124794121825  # in kilometers
>>> haversine(lyon, paris, miles=True)
243.589575470673  # in miles

Metadata

Release files for haversine 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haversine 0.4.4
File Size Uploaded Provenance Actions
haversine-0.4.4.tar.gz 1.6 kB Without provenance Details for haversine-0.4.4.tar.gz

Release files / haversine-0.4.4.tar.gz

Download URL haversine-0.4.4.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d0e86fce74299ee2de8c9badaf15a6ac6d0cbcad1da2805cc8c29f4e60b42e27
BLAKE2b-256 checksum
How to use checksums
464b54bc1119fd6af66f575fee6af0eb7f4201bc29a99415a0324dc6add0eeeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for haversine 0.4.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page