Google Weather API

Want the weather on your site? Use Google’s weather API.

Here’s an example:

http://www.google.com/ig/api?weather=Phuket+Thailand

And here’s the list of possible weather images that are used by the API:

sunny mostly sunny partly cloudy mostly cloudy chance of storm rain chance of rain chance of snow cloudy mist storm thunderstorm chance of tstorm sleet snow icy dust fog smoke haze flurries

just in case you want to replace with your own nicer ones like, for example, these from iStockphoto:

Universal icons - Set 20 (Weather)

And for those of you who use CakePHP, here’s a CakePHP Weather Component which uses the Google Weather API.

This entry was posted in Articles and tagged , , , . Bookmark the permalink.

Comments are closed.