I did some work with the Yahoo! API recently to process CSV files of addresses to find longitude and latitude. The final code takes a CSV file, processes it, and then returns a CSV file with longitude and latitude fields added.

The code below includes the “pollYahoo” function, that takes an address and returns a string from Yahoo! – It’s part of a class so, references “$this” in places where other sections may have set values.

Image Credit: Flickmor