National and regional text forecast tutorial
Basic tutorials showing how the UK national and regional forecast data feeds can be used to retrieve data.
Please refer to the National and regional text forecast detailed documentation for the regional forecast data feeds for more detailed information.
The regional forecast data feeds provide access to regional script forecasts for a number of regions across the UK, giving detailed forecasts for the day the forecasts were issued and the following day, and describing the general outlook for the following days. The data feeds are routinely updated twice daily, in the morning and afternoon, normally early morning and early afternoon, and are sometimes updated more frequently.
You would like to access forecasts for a given region
Via the web services
- Call the regional forecast site list web service to find the id of the region you would like a forecast for
- Call the regional forecast capabilities web service to check whether the data has been updated since it was last requested
- If so call the regional forecasts web service, specifying the id of the relevant region, to retrieve the new data in either XML or JSON format
- Call the metoffice.forecast.region.getLocations method to find the id of the location you would like to see observations for
- Call the metoffice.forecast.region.getById method to retrieve the regional forecast for the relevant region
Last updated: Sep 27, 2016 8:33 AM