Calculate the geographical distance between 2 points with extreme accuracy.
Project description
Calculate the geographical distance (in kilometers or miles) between 2 points with extreme accuracy.
This library implements Vincenty’s solution to the inverse geodetic problem. It is based on the WGS 84 reference ellipsoid and is accurate to within 1 mm (!) or better.
This formula is widely used in geographic information systems (GIS) and is much more accurate than methods for computing the great-circle distance (which assume a spherical Earth).
Example: distance between Boston and New York City
>>> from vincenty import vincenty
>>> boston = (42.3541165, -71.0693514)
>>> newyork = (40.7791472, -73.9680804)
>>> vincenty(boston, newyork)
298.396057
>>> vincenty(boston, newyork, miles=True)
185.414657
Installation
$ pip install vincenty
References
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vincenty-0.1.4.tar.gz
(2.8 kB
view details)
File details
Details for the file vincenty-0.1.4.tar.gz
.
File metadata
- Download URL: vincenty-0.1.4.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
eaa2f2de835f369cbd71c1a01ccd4e0d412da0f4aeef7c9692242b9ce182785a
|
|
MD5 |
cc7f93eab24ffa5594a6f2a4fc65fb9b
|
|
BLAKE2b-256 |
c4de296372fde237fdda627fb6127a34689a3c1b25b6531a180060bf8e11457f
|