Skip to main content

Calculate the geographical distance between 2 points with extreme accuracy.

Project description

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

See also

http://en.wikipedia.org/wiki/Vincenty%27s_formulae http://en.wikipedia.org/wiki/World_Geodetic_System

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.2.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file vincenty-0.1.2.tar.gz.

File metadata

  • Download URL: vincenty-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vincenty-0.1.2.tar.gz
Algorithm Hash digest
SHA256 759928739ac8cae409134418ca7ce1c35a02e36597b6aa83e2f445bd025fc2a7
MD5 8f8363fe4b6f36b0a57679cd0d76941d
BLAKE2b-256 53484f8c5e91b83eda76f87e801c776c079957f986fe28976902ded0e8662cf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page