Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def dist_to_travel(self):
- if route == []:
- return 0
- else:
- thing3 = GPS_Location.dist(current, route[0]) #the distance between current and the first location
- for i in len(route) - 1:
- test = 0
- thing3 += GPS_Location.dist(route[test], route[test + 1])
- test += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement