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
Release files for haversine 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| haversine-0.4.5.tar.gz | 1.6 kB | Details |
Release files / haversine-0.4.5.tar.gz
| Download URL | haversine-0.4.5.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56a12298851a455fb80a8d7e8c7c5548b623d5d1bffc9eba16e7855d9eec5c3c
|
|
BLAKE2b-256 checksum How to use checksums |
57b43b1f5ca78876ad00cbb2a2bf7bcebfe4751c00ddabc47005b59f33835646
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |