I’ve done some work this week expanding on the work I wrote about in the post Talking to Plazes from Ruby: I’ve now created general-purpose Ruby module that implements all of the Plazes API methods, both the Launcher and the WhereAmI.
Here’s what you need to start talking to Plazes from Ruby yourself:
- Download PlazesRuby-0.4.tar.gz to get the Ruby module plazes.rb and associated code.
- Read the documentation (also included in the download)
- If you don’t have one, request a Plazes developer key.
Note that my implementation is very Mac OS X specific because of the method I used to grab the MAC address of the current gateway; it should be trivial, however, to modify the code to accommodate other operating systems (there are plenty of comments in the code to suggest where and what).
And here’s (primitive) proof that it works: