Weather Mashup


Although I like my existing weather userbar, I really wanted an easier city search…

Although I like my existing weather userbar, I really wanted an easier city search. I decided to stick with NOAA and the NWS for now and ran across a nice all in one weather page with an XML link. The XML requires latitude and longitude meaning I need to find a way to find your city from a search string. Here is where the mash-up comes in. After a quick search, I found the Google Geocoding API. It accepts just about any search string and returns the closest match with the coordinates I need. The result isn't much different, but the location is easier to read.

[Image]

http://3v.reids4fun.com/weatherub2.cgi?boise,id

Note that this API provides a lot more information than the original one I was using. I will be able to create forecasts, give more detailed weather information, etc. However, there is a minor bug in the current conditions icon that shows partly cloudy instead of clear. Another problem is that the weather is only for the US. I might look for other API's, but I do like the detail provided by NOAA. If you want to give it a try yourself, hit up this link and let me know what you think.



Comments on this article:

No comments so far.

Write a comment:

Type The Letters You See.
[captcha image][captcha image][captcha image][captcha image][captcha image][captcha image]
not case sensitive