Yahoo Geocoding API: The Daily REST library entry for Excel and GAScript

Geocode with Yahoo API directly into an Excel or Google Spreadsheet

Strictly speaking today’s API doesn’t really qualify as ‘API of the day’, since I’ve written about this before comparing a few geoCoding APIs. I’ve been using Google for geocoding , but recently I am seeing a lot more quota refusals now when not using a developer key, so I’d thought I may as well resurrect Yahoo implemented as a rest-library member. This a data query API, populating columns in a row in a spreadsheet based on a variable column in the data. As usual, you just name the columns to match any data you want to retrieve and go. Here’s an example geocoding some of the queen’s family’s homes.

Here’s the Excel code (included in cDataSet.xlsm downloadable from the ramblings site)
Public Sub testYahooGeocode()

    generalDataSetQuery “geocoding”, “yahoo geocode”, “input address”
End Sub

and the GAS version (included in a Google Spreadsheet) using the mcpher GAS library
function testYahooGeocode() {

    mcpher.generalDataSetQuery (“geocoding”, “yahoo geocode”, “input address”);
}

The rest library is itself implemented as REST API and can be queried like this.

For more stuff like this, visit the ramblings site or the associated blog. If you have suggestion for particular API, vote for it on google moderator or contact me on our forum

About brucemcp 224 Articles
I am a Google Developer Expert and decided to investigate Google Apps Script in my spare time. The more I investigated the more content I created so this site is extremely rich. Now, in 2019, a lot of things have disappeared or don’t work anymore due to Google having retired some stuff. I am however leaving things as is and where I came across some deprecated stuff, I have indicated it. I decided to write a book about it and to also create videos to teach developers who want to learn Google Apps Script. If you find the material contained in this site useful, you can support me by buying my books and or videos.

Be the first to comment

Leave a Reply

Your email address will not be published.


*