tags:

views:

390

answers:

1

I want to get the current weather conditions from the NOAA. I know they have a SOAP web service that can be used to get weather forecasts and XML files for current weather conditions for each of their weather stations. I could just use the XML file for the weather station nearest to where I want, but there doesn't seem to be an easy way to search for the proper xml file by zipcode. Is there a simple way to get current weather conditions by zipcode from the NOAA?

+1  A: 

NOAA is not the only weather feed on the interwebs.... here is a website that has a partial list. NOAA operates from Lat/Lon not Zipcode.

If you are set on using NOAA, you would have to use a diff webservice (such as GeoNames ) to get the lat/lon of your zip, then feed the result to the NOAA service.

NOAA's current conditons are available via XML/RSS feeds, you just have to know the code for the weather station you want....

http://www.weather.gov/xml/current_obs/CodeForTheStationYouWant.xml

I found this article that should help you out.

Muad'Dib
Thank you for the response. I would like to use NOAA if possible. Needing to use lat/lon or zipcode is not relevant. The point is to be able to get the current weather conditions based on a specified location, whether it be lat/lon or zipcode. Feeding in the lat/lon into the SOAP web service still only gets the forcast, not the current conditions.
Brian
they do have XML and RSS feeds of the current conditions. you could grab those, here is thier link: http://www.nws.noaa.gov/xml/current_obs/ but you already know that
Muad'Dib
Yes, I am aware of this as I stated before, but how would you suggest finding the proper xml file for a specific location without using their website? I need to do this from my own application.
Brian
ok i found a link to an rss feed that lists all of the stations by lat/lon. I should be able to use this to find the correct station: http://www.weather.gov/xml/current_obs/index.xml
Brian