|
|
Home /
Groups /
ColdFusion Newbie (CF-Newbie)
yahoo weather service
Does anyone know if the yahoo weather provides international weather, (Canada, Europe, Caribbean etc) http://developer.yahoo.com/weather/Joel Polsky 07/17/08 02:50 P Yes, it can. If you go to the Weather site and search for London,Raymond Camden 07/19/08 05:11 P Hi Raymond,Joel Polsky 07/21/08 01:55 P Hi Raymond,Joel Polsky 07/21/08 01:56 P Sorry - I missed your email. If xmlResult is the parsed node, then toRaymond Camden 08/05/08 12:50 P Does anyone know if the yahoo weather provides international weather, (Canada, Europe, Caribbean etc) http://developer.yahoo.com/weather/ And surprisingly they have a cf page too! http://developer.yahoo.com/coldfusion/ Yes, it can. If you go to the Weather site and search for London, England, you get a page that has the location ID in the url, which you can then use with their API. FYI, don't forget I have an entire CFC library for Yahoo services (cfyahoo.riaforge.org). This makes using Yahoo's services even easier. On Thu, Jul 17, 2008 at 1:46 PM, Joel Polsky <jsp2001@hotmail.com> wrote: > Does anyone know if the yahoo weather provides international weather, (Canada, Europe, Caribbean etc) http://developer.yahoo.com/weather/ > > And surprisingly they have a cf page too! http://developer.yahoo.com/coldfusion/ Not surprising - I bugged them until they let me write one. ;) -r Hi Raymond, Thanks for the reply -- I looked at your stuff, nice - but I'm already down my own and different path and have coded based on the samples at Yahoo - (guess that's your doing too?) The Yahoo API is restrictive in its use and seems only to provide a 2 day forecast - I want 5 days. (I have an API key set up with weather.com's service for this.) My problem now is more coding. I'm able to query any zipcode or international destination and get an xml feed response - but when I try to display more than on node element I get xml errors. I need to be able to get the value of the xml node not the node it's self. For example I get this: <?xml version="1.0" encoding="UTF-8" ?> <dnam>Brimfield, MA (01010)</dnam> I want: "Brimfield, MA (01010)" in a string so I can strip off the '(01010)' portion. Current code for the above result is: <cfhttp url="#urlRequested#" result="response"> <cfset xmlResult = xmlParse(response.fileContent)> Anyone have ideas.. What's missing? Thanks! ----- Excess quoted text cut - see Original Post for more ----- -r Hi Raymond, Thanks for the reply -- I looked at your stuff, nice - but I'm already down my own and different path and have coded based on the samples at Yahoo - (guess that's your doing too?) The Yahoo API is restrictive in its use and seems only to provide a 2 day forecast - I want 5 days. (I have an API key set up with weather.com's service for this.) My problem now is more coding. I'm able to query any zipcode or international destination and get an xml feed response - but when I try to display more than on node element I get xml errors. I need to be able to get the value of the xml node not the node it's self. For example I get this: <?xml version="1.0" encoding="UTF-8" ?> <dnam>Brimfield, MA (01010)</dnam> I want: "Brimfield, MA (01010)" in a string so I can strip off the '(01010)' portion. Current code for the above result is: <cfhttp url="#urlRequested#" result="response"> <cfset xmlResult = xmlParse(response.fileContent)> Anyone have ideas.. What's missing? Thanks! ----- Excess quoted text cut - see Original Post for more ----- -r Sorry - I missed your email. If xmlResult is the parsed node, then to get the value you want, its just xmlResult.xmlText ----- Excess quoted text cut - see Original Post for more -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||