Does anyone know of a service with an API or a widget that I could use to display weather based on geographical coordinates? I have only found ones for zipcodes.
Thanks!
Does anyone know of a service with an API or a widget that I could use to display weather based on geographical coordinates? I have only found ones for zipcodes.
Thanks!
Google offers a Reverse Geocoder in their API you may be able to use to get the Zip code for a particular lat/long.
Weather.gov supports lat/long weather lookups, as well. They offer an API.
Weather Underground: http://wiki.wunderground.com/index.php/API_-_XML
Example: http://api.wunderground.com/auto/wui/geo/GeoLookupXML/index.xml?query=37.76834106,-122.39418793
I have developed a weather forecast API which is in my opinion somewhat more flexible than existing technologies. The reason is that my application extracts and plots data from the 4-dimensional (time and space) weather forecast data files on the fly. Traditional API's simply make forecasts from a number of preselected stations available or are quite cumbersome to use. This means that my forecasts can be interpolated on the fly. One example is weather forecast time series at a specific point - they are interpolated to the point that you request. Another example is that you can request a forecast along a route in space and time. You can request either data or plots. The weather forecasts are mainly global forecasts from NOAA.
The API supports JSONP for cross domain data fetching (for mashups) and images can just be included using vanilla JavaScript.
That was the good parts. The bad part is that this service is in beta and will be so for some months to come and that the figures that are served are currently targetted "power weather users" (although I do plan to add more traditional figures with time - let me know what you need). You can however always request the data and create/use your own figures.
You can find a description of the API here:
Google has a great unofficial XML API for this, example: http://www.google.com/ig/api?weather=,,,50500000,30500000
Try World Weather Online to get current weather and weather forecast via. Latitude/Longitude, Zipcode and Postcode absolutely free.