| Weather on Google Maps | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||
|
||||||||||||
| Why was this site made? | ||||||||||||
After using Google Maps for a while, I wondered what I could do with the API that Google provided. My first goal was to show the wind direction at all the major cities to see if there was a trend. But, I quickly found that the outcome was pretty dull. So, I changed my design to show the mind and designed a site which shows the current temperature of several cities. In addition, by clicking on a label, it pops up a weather detail plus a link to weather.com to get more details. |
||||||||||||
| How did I build it? | ||||||||||||
| The guts of the site is a python script that fetches the new weather data every 1 hour. The script is executed by cron. The script generates a file called "wind.xml" (a name leftover from the previous goal). The wind.xml file contains a list of cities with their unique codes so I can fetch the weather data from weather.com. If you are curious to see the code, I plan to make it available soon. I just want to fix some bugs before releasing it. | ||||||||||||
| What's to be done? | ||||||||||||
There's lots to be done. My first goal is to fix this page so it works on Internet Explorer, Opera and other browsers. Somehow, IE complains that it can't access the page. If anyone knows a solution, please e-mail me. On Opera, the page loads fine by the infoWindow doesn't popup. I also have other cool things I want to implement on top of this. Stay tuned. UPDATE: I fixed the code to work with IE and Opera. |
||||||||||||
| Who made this? | ||||||||||||
| As you may have guessed, my name is Gokul. I made this site just to see what I could do with the Google Maps API. Please send any comments/suggestions to gokul.soundar+maps[at]gmail.com. | ||||||||||||