Commits

gary.bernhardt  committed 604b10d

Fixed a NameError in the distance module

  • Participants
  • Parent commits 2856034

Comments (0)

Files changed (1)

File geopy/distance.py

         if isinstance(distance, Distance):
             distance = distance.kilometers
 
-        d_div_r = float(distance) / self.radius
+        d_div_r = float(distance) / self.RADIUS
 
         lat2 = asin(
             sin(lat1) * cos(d_div_r) +