Skip to main content

Haversine

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

Example: distance between 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.5.0

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.5.0
File Size Uploaded Provenance Actions
haversine-0.5.0.tar.gz 1.6 kB Without provenance Details for haversine-0.5.0.tar.gz

Release files / haversine-0.5.0.tar.gz

Download URL haversine-0.5.0.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
29fbceec1fcf295040f495f685e52a23a9101515045bfa49c26e379c46030858
BLAKE2b-256 checksum
How to use checksums
16a2451babc8a156c10fe7d0ebd42ce034589810c6b546965beea859b9bd5030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Security for haversine 0.5.0

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