Skip to content
Determine a weather forecast along a route using Google Directions API and forecast.io. Uses Leaflet to display the results.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
coords.js
leaflet.hotline.js
main.py
main.py.DEPRECATED
map.html

README.md

SunTrip

Determine a weather forecast along a route using Google Directions API.

If you want to test it, you'll need to get a Google Directions API key as well as a forecast.io key.

Both of these keys should go into a file named api_key.py. This file will have two variables: directions_api_key and weather_api_key. The file isn't synced to github because I don't want my API keys abused.

Usage

For command line usage, simply call main.py and follow the prompts.

./main.py
Enter a start location: University of Waterloo
Enter an end location:  Square One, Mississauga, ON
Choose a transportation method.
[1] bicycling (default)
[2] driving
[3] walking
: 1
Write to file? (Y/n):   Y
Enter a filename. Leave blank for default (results.csv): 

Screenshots of output

Clear weather, with forecast along route

Semi-bad conditions along the route

You can’t perform that action at this time.