Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Caching REST with sfFunctionCache
Apr 09, 2007 @ 10:49:00

On the SpinDrop blog, there's a new article from Dave Dash highlighting one of the features of the symfony framework they use to bounce requests off of Yahoo!'s Geocoding API to normalize addresses.

I wrote a wrapper (I'll release it as a plugin if requested) for the Geocoding API, the bulk of the work (the REST call) occurs in a function called doQueryGIS.

He include the code for the wrapper function and show how to use it to make a call to the API, setting up the caching directory and passing in the raw address data from the user.

tagged: symfonyframework geocode yahoo api sffunctionclass symfonyframework geocode yahoo api sffunctionclass