Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save habnabit/ba80e1470f8d46875dffa9e1438a00df to your computer and use it in GitHub Desktop.
Save habnabit/ba80e1470f8d46875dffa9e1438a00df to your computer and use it in GitHub Desktop.
for location in locations:
for mode in ['driving', 'transit']:
row = [place, mytime, mode]
for i in range(10):
mytime += timedelta(minutes=20)
row.append(get_directions(location, (lat,lon), mytime, mode, gmaps))
csv_file.writerow(row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment