tags:

views:

295

answers:

1

Has anybody created a nice wrapper around Yahoo's geo webservice "GeoPlanet" yet?

+1  A: 

After a brief amount of Googling, I found nothing that looks like a wrapper for this API, but I'm not quite sure if a wrapper is what is necessary for GeoPlanet.

According to Yahoo's documentation for GeoPlanet, requests are made in the form of an HTTP GET messages which can very easily be made using Python's httplib module, and responses can take one of several forms including XML and JSON. Python can very easily parse these formats. In fact, Yahoo! itself even offers libraries for parsing both XML and JSON with Python.

I know it sounds like a lot of libraries, but all the hard work has already been done for the programmer. It would just take a little "gluing together" and you would have yourself a nice interface to Yahoo! GeoPlanet using the power of Python.

mhahnenb
Thanks -- I was hoping for a more OO-like interface that hides the whole URL generation, JSON/XML parsing etc...
HD