Skip to content

Instantly share code, notes, and snippets.

@tbbooher
Created February 8, 2017 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tbbooher/4d17e50dcffa290740cfbeae99460b2b to your computer and use it in GitHub Desktop.
Save tbbooher/4d17e50dcffa290740cfbeae99460b2b to your computer and use it in GitHub Desktop.
for location in locations:
for mode in ['driving', 'transit']:
durations = np.array([])
for i in range(10):
mytime += timedelta(minutes=20)
np.append(durations, get_directions(location, (lat,lon), mytime, mode, gmaps))
csv_file.writerow(np.array([place, mytime, mode, durations]).flatten())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment