Skip to main content

Calculate the geographical distance between 2 points with extreme accuracy.

Project description

Vincenty

Calculate the geographical distance (in kilometers or miles) between 2 points with extreme accuracy.

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.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Supported by

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