Skip to content

Instantly share code, notes, and snippets.

View chase9's full-sized avatar

Chase Lau chase9

View GitHub Profile

Keybase proof

I hereby claim:

  • I am chase9 on github.
  • I am chaselau (https://keybase.io/chaselau) on keybase.
  • I have a public key ASBpJ2_eiclu0w-ir3cDbNDIcW9BjnVie1oEeYf9jPcTVgo

To claim this, I am signing this object:

@chase9
chase9 / RushHour.py
Created June 16, 2017 19:20
Simple Python script to find traffic times for the next 24 hours
import googlemaps
from datetime import datetime
import time
start_time = time.time()
# You're going to need your own API key for Google Maps, specificly a distance matrix key.
# See https://github.com/googlemaps/google-maps-services-python for details on obtaining a key.
gmaps = googlemaps.Client(key='')
# Ask for / open the results file to append to