Skip to main content

Python implementation of haversine formula to determine the great-circle distance between two points on a sphere given their longitudes and latitudes.

Project description

haversine Build Status

Python implementation of haversine formula to determine the great-circle distance between two points on a given sphere knowning their longitudes and latitudes.

Installation

pip install  aversine

Usage

    from from haversine import haversine

    haversine.Haversine()
    location_a, location_b = (45.7597, 4.8422), (48.8567, 2.3508)
    haversine.distance(location_a, location_b) # => 392.2167178065958

Project details


Release history Release notifications

This version

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aversine, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size aversine-0.0.1-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size aversine-0.0.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page