Skip to main content

Haversine

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.1

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.1
File Size Uploaded Provenance Actions
haversine-0.4.1.tar.gz 2.4 kB Without provenance Details for haversine-0.4.1.tar.gz

Release files / haversine-0.4.1.tar.gz

Download URL haversine-0.4.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ea4b62bb36a1584fe8c546d9a20f6cd69e9dad4401c1a60caf078f22a6e2e817
BLAKE2b-256 checksum
How to use checksums
bb4cbf5fc90102e8b7cb265a497ee76762dca3b4d47689291b9fa917856c4c05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for haversine 0.4.1

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