I just checked in a new update to the ColdFusion Yahoo Package. This addition has a few small changes but the big addition is in Local Search. Yahoo's Local Search is pretty darn powerful. You can send in any basic query ("comic books"), along with address information in just about any form. The results are very detailed and include maps, ratings, telephone number, address, web site, etc.
Here is some sample code from the zip:
<cfset localAPI = createObject("component", "org.camden.yahoo.local")>
<cfset term = "comic book">
<cfset zip = "70508">
<cfinvoke component="#localAPI#" method="search" returnVariable="results">
<cfinvokeargument name="query" value="#term#">
<cfinvokeargument name="zip" value="#zip#">
</cfinvoke>
<cfoutput>
<h2>Local search for #term#/#zip#</h2>
</cfoutput>
<cfdump var="#results#">
For fun - try this search:
<cfset term = "aliens">
<cfinvoke component="#localAPI#" method="search" returnVariable="results">
<cfinvokeargument name="query" value="#term#">
<cfinvokeargument name="location" value="Roswell, NM">
</cfinvoke>
I tried weapons of mass destruction in Iraq - but somehow I wasn't able to find any. (Sorry, couldn't resist.)
Archived Comments
It all depends if 1.7 metric tons of partially enriched uranium count as "WMD". Maybe Saddam was gonna make strawberry shortcakes for everyone. lol!
http://news.bbc.co.uk/1/hi/...
I guess nobody ever dropped a 1.7 metric ton WMD bomb on your blog before. lol!
Will
It was a joke, Will. ;)
Well you know I gotta keep an eye on ya. lol...
I get and error on the local search. The epochDate seems to not be of type Date. I deleted the reference from the CFC and it works fine.
Thanks for posting this.
Chris, can you please send me a test script showing you ran the search?