Skip to content

Instantly share code, notes, and snippets.

Mohammad saso008

View GitHub Profile
saso008 /
Created Jul 19, 2018 — forked from rochacbruno/
Calculate distance between latitude longitude pairs with Python
#!/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.