/fasthaversine

a fast vectorized version of haversine distance calculation using numpy

Primary LanguagePythonMIT LicenseMIT

Fast Haversine distance evaluation

This package is a numpy version of haversine. Compared with haversine, our implementation is much more efficient when dealing with list-wise distance calculation.

Usage

from fasthaversine import haversine

haversine(points1, points2, unit='km')

where points1 and points2 are two list of tuples (lat, lon).