Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def dist(lat1, lon1, lat2, lon2):
- return 3958.761 * sqrt(pow(lat1 - lat2, 2) + pow(cos((lat1 + lat2)/2) * (lon1 - lon2), 2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement