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

Release files / haversine-0.1.tar.gz

Download URL haversine-0.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
000fd4d98b5d8a21a3384f88bf639817d5c2e883c95d2cab9f29168e5a7410f3
BLAKE2b-256 checksum
How to use checksums
9a618f5eea571cef9dfa2e8370886e1236643fc300c4ab58559128cdd9253dec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for haversine 0.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