Location API

Gets the location name, latitude and longitude for a location within the Simcoe Weather Forecast area.

e.g. http://developer.simcoe-weather.com/api/?method=simcoeweather.location.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"


Sample Response

<sw status="ok">
<location>
<place>Barrie</place>
<latitude>44.389244</latitude>
<longitude>-79.690162</longitude>
</location>
</sw>

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.