Simple Flask app that calculates commute times to a destination using the Google Maps Distance Matrix API.
-
Create a virtual environment and install dependencies:
python -m venv .venvsource .venv/bin/activatepip install -r requirements.txt
-
Put your Google Maps API key in the environment:
export GOOGLE_MAPS_API_KEY=your-key
python app.py
Then open http://localhost:5000.