Skip to content

Determine a weather forecast along a route using Google Directions API and forecast.io. Uses Leaflet to display the results.

License

Notifications You must be signed in to change notification settings

mcvittal/SunTrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Determine a weather forecast along a route using Google Directions API and forecast.io. Uses Leaflet to display the results.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published