My application uses yahoo’s weather feed (XML) to display the weather forecast for the next 5 days. This works nice when the zip code is in the US. For example, the url below gets me the feed for Franklin, MI.
http://xml.weather.yahoo.com/forecastrss/48025_f.xml
I need a similar feed for Canada too, but cant seem to get it working. For example, the postal code of ‘Scarborough’ is M1M1M1. Tried with
http://xml.weather.yahoo.com/forecastrss/M1M1M1_f.xml
but that does not work.
Thanks in advance
I’m using reliably:
where
w = WOEIDand forScarborough, Canadaw=4369so:will return correctly the weather data. More information on the API here.
I’m also using this method for getting the
WOEIDfor a given location name string:But for this to work you will need to obtain an
ApplicationIDfromYahooby registering your application.