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

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

Release files / haversine-0.4.2.tar.gz

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

Security for haversine 0.4.2

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