Calculate the distance bewteen 2 points on Earth.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
haversine-0.4.2.tar.gz
(1.6 kB
view details)
File details
Details for the file haversine-0.4.2.tar.gz
.
File metadata
- Download URL: haversine-0.4.2.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c442d2561787448999f04d352005b5ac3d92b5099415ec52ed9ef6481f7a57f |
|
MD5 | 14c876b304667d2058a3a8074ede899a |
|
BLAKE2b-256 | 6e297d011716857597b2cdea68ae1d0b20e04f4daaa4693d0d503b35b2d0633c |