summaryrefslogtreecommitdiff
path: root/progs/a543.py
blob: d8b830544abef44c26f8854d58d3aaf97536eb0b (plain)
1
2
3
4
from math import radians, sin, cos, acos
def distance_lat_long(slat,slon,elat,elon):
 dist = 6371.01 * acos(sin(slat)*sin(elat) + cos(slat)*cos(elat)*cos(slon - elon))
 return dist