Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. def dist_to_travel(self):
  2. if route == []:
  3. return 0
  4. else:
  5. thing3 = GPS_Location.dist(current, route[0]) #the distance between current and the first location
  6. for i in len(route) - 1:
  7. test = 0
  8. thing3 += GPS_Location.dist(route[test], route[test + 1])
  9. test += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement