Local Forecast API
Gets the feed of the local forecast data based on the location specified. It also displays the current weather data from the closest observation station.
e.g.
http://developer.simcoe-weather.com/api/?method=simcoeweather.localforecast.get&location=Barrie...
Parameters
Required
method
The method to call this particular method
location OR loc_lat AND loc_lng
The location OR the latitude and longitude of the forecast (within south-central Ontario)
Optional
format
The desired response format, which can be either "XML" or "JSON". (Default value is XML.)
callback
Name of a function to call. This is primarily to enable cross-domain javascript requests using the <script> tag, sometimes known as "JSONP". This works only when the parameter "format" is set to "JSON"
units
Specifies the units. If set to "imperial" it will displays all values in imperial units (fahrenheit, miles per hour etc), otherwise the values will be all metric
dayname
If set to "local" it will display wording such as "This Afternoon" or "Tonight" instead of "Monday" or "Monday Night"
onlyDaytime
If set to "true" it will display only the daytime forecast periods. However, the first occurance of the night period will also be shown. Example: Today, Tonight, Monday, Tuesday etc.
Sample Response
<sw status="ok">
<forecast>
<day daycode="2008121720">
<dayname>Tuesday</dayname>
<weathericon>16</weathericon>
<condition_code>RS</condition_code>
<condition>Light Rain/Snow</condition>
<condition_detailed>Light Rain or Snow showers approaching from the west, locally heavy at times.</condition_detailed>
<temperature>5</temperature>
<pop>60</pop>
</day>
...
</forecast>
</sw>
Note: The "daycode" attribute refers to the expiration time of that forecast period in the following format (yyyy/mm/dd/hh), in Eastern Time Zone.
Note: All times displayed are in GMT/UTC.
Errors
40: Invalid Method - You have entered an incorrect API method.
50: To many requests per day - You have accessed this API to many times during a 1 hour period.
100: Invalid Location - You have entered an invalid location.
110: Forecast is currently unavailable - No Forecast is currently available!