Progress on Gargoyle

March 24, 2008

Remember Gargoyle?

Well, it hasn’t been abandoned yet. I’ve been rewriting the design and scrapping it over and over. I think I’ve finally reached a design that’s stable, and that will plug nicely into all kinds of stuff.

Today I wrote a lightweight web.py-based POI system. It gives a user a random hash which is used to identify a unique POI list. Access is done RESTfully. That is:

http://www.example.com/locate/te6hemi8t3cu/38.89768/-77.036455/

Which would display all POIs in the list te6hemi8t3cu that are in the box bounded by (38.897000, -77.036000) and (38.897999, -77.036999). That is, three spaces after the decimal is my chosen granularity (it’s roughly walking distance). The POI list is produced either in a human readable bullet-point list (for easy display on mobile devices), or as a KML file (with some added metadata of course. Such as an expiration date for the entry).

Adding a POI is just as easy, just using add instead of locate, and appending /poi_info to the URL.

This means that you can easily write apps to use this simple API, as well as display it using Google Earth.

What’s the next step? I need to convert my already existing client for the Nokia N800 to be able to use this POI list, as well as maintain its own POI cache. It should only read to the user things within a 4 or 5 decimal space distance, and not bother querying unless the user is approaching the edges of the grid box she’s in.

Finally, once these infrastructure issues are taken care of, the real purpose of Gargoyle will be implemented. This takes the form of a the app that goes through your “reading list” and adds relevant items to the POI list.

I will post the code for the N800 code and the POI server some time within the week. It still needs some cleanup. Gargoyle v0.2 here we come!

Addendum: POIs can also be meta-POIs. That is, rather than being a placename, an entry into the db can be a uri to an external kml source (can be dynamic). An example would be a URL that points to a script that forwards the coords to the Geonames Wikipedia web service service (shows nearest wikipedia entries) and converts the resulting XMl or JSON into KML.

Progress on Gargoyle - March 24, 2008 - Michael Katsevman