a guest Aug 21st, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def manhattan(s_lat, s_lng, e_lat, e_lng):
  2.     """
  3.     sum of horizontal and vertical distance between
  4.     two points
  5.     """
  6.     a = haversine(s_lat, s_lng, s_lat, e_lng)
  7.     b = haversine(s_lat, s_lng, e_lat, s_lng)
  8.     return a + b
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand