Skip to content

Instantly share code, notes, and snippets.

Mohammad saso008

View GitHub Profile
@saso008
saso008 / haversine.py
Created Jul 19, 2018 — forked from rochacbruno/haversine.py
Calculate distance between latitude longitude pairs with Python
View haversine.py
#!/usr/bin/env python
# Haversine formula example in Python
# Author: Wayne Dyck
import math
def distance(origin, destination):
lat1, lon1 = origin
lat2, lon2 = destination
You can’t perform that action at this time.