Hi,
I am having an issue. If I run the following query:
http://where.yahooapis.com/geocode?q=Belfast&appid=<mykey>I get the following data:
<Quality>40</Quality><Found>1</Found><Result><quality>40</quality><latitude>54.595295</latitude><longitude>-5.934524</longitude><offsetlat>54.595295</offsetlat><offsetlon>-5.934524</offsetlon><radius>81100</radius><name></name><line1></line1><line2>Belfast</line2><line3></line3><line4>United Kingdom</line4><house></house><street></street><xstreet></xstreet><unittype></unittype><unit></unit><postal></postal><neighborhood></neighborhood><city>Belfast</city><county>County Antrim</county><state>Northern Ireland</state><country>United Kingdom</country><countrycode>GB</countrycode><statecode>NIR</statecode><countycode></countycode><uzip>BT2 7</uzip><hash></hash><woeid>20071110</woeid><woetype>9</woetype></Result></ResultSet>You can see that the Where On Earth ID is 20071110 and the Longitude/Latitude is -5.934524/54.595295. When I then use this to try to obtain the weather it doesn't work with this query:
http://xml.weather.yahoo.com/forecastrss?w=20071110&u=c
I get the error message "City not found". Can you please advise me why, as when I use this page:
http://uk.weather.yahoo.com/northern-ireland/
And lookup Belfast it does show the weather. With this address:
http://uk.weather.yahoo.com/northern-ireland/belfast/belfast-44544/
I then tried running this and this worked:
http://xml.weather.yahoo.com/forecastrss?w=44544&u=c
What am I doing wrong??? I need to dynamically get the geo details and weather for a searched address string using Yahoo's api's.
Thanks for any help!!
Rob