delta_long = radians(long_a - long_b)
cos_x = sin(lat_a) * sin(lat_b) + cos(lat_a) * cos(lat_b) * cos(delta_long)
return acos(cos_x) * EARTH_RADIUS_IN_MILES
Django - how can I find the distance between two locations?