haversine
app.contrib.geospatial.haversine
A pure Python implementation of Haversine formula Based on Bartek Górny implementation and others Author: Jorge Brunal Pérez diniremix@gmail.com
How to use:
from haversine import calculate_distance
origin = [4.6565, -74.564654] destiny = [4.6748, -74.05485]
result_in_kms = calculate_distance(origin, destiny, 'kms') print "result in kms", result_in_kms
Otherwise result_in_mts = calculate_distance(origin, destiny) print "result in mts", result_in_mts