NOAA weather API

7.5k views Asked by At

i trying to get hourly forecast using NOAA but it doesnt let me enter East longitude. The request has to be west longitude.

do they even provide service for east longitude for asian countries like India.

here is the link i used http://graphical.weather.gov/xml/SOAP_server/ndfdXML.htm

or could you give me any other link who give hourly forecast in the API. i tried yahoo weather, weatherbug, world weather online. they are not giving hourly forecast in the API.

Thanks!

1

There are 1 answers

1
kharma On

Here is a partial solution based on my work with the NOAA API:

NOAA works by weather station, so the URL will vary depending on the station closest to you. In my case, I am using the Western Region station:

http://www.wrh.noaa.gov/forecast/xml/xml.php?duration=#{duration}&interval=#{interval}&lat=#{latlong[0]}&lon=#{latlong[1]}

Here is my implementation in Ruby for retrieving the 7-day forecast in 6-hour intervals by zipcode:

https://raw.github.com/WalterYu/stormsavvy/master/lib/weather/noaa_forecast.rb

Hope that helps you in getting started.