Thursday, 10 March 2011

Augmented Reality for Geology (a Drupal approach)

Yesterday in a discussion with Jeremy Young we thought about the concept of having an augmented reality app that would point out a few major points of interest in Lyme Regis (we'll be down for the Fossil Festival again this year). The discussion came from playing with the Layar app, for which it is possible to provide custom data layers.

As there will be a few of us around at the festival this year (many of us living in an iPhone augmented world) I thought the idea was worth investigating a little bit more. The first challenge was to provide some kind of editing environment where we could collaboratively provide the relevant co-ordinates, altitude, text and image. Thanks to the Layar module for Drupal this was achieved pretty easily - adding items to the augmented reality layer becomes just as simple as filling out a form.

I created a handful of Points of Interest (including The Whole Hog - perhaps the world's best sandwich shop) and then submitted the necessary details to the Layar team (the layer is currently still awaiting approval).

The next issue was how we could add points (including photographs) while roaming around the town and seashore. The obvious answer was the ubiquitous iPhone (other smartphones are available), but mobile Safari doesn't allow uploads to websites.

The solution was Flickr (I use it to manage almost all my photographs). The Flickr app is easy to use and can upload photographs complete with titles, descriptions, location data and tags. Importing data from Flickr was achieved using a version of the FlickrSync module I had previously hacked to import geolocation data. The system can be set to only import photographs with specific tags - an easy way to only get the data I want. Individual users of the site will be able to associate their Flickr account and specify what tags they want to use to label items for inclusion in the layer.

I have also made an overview map that shows the points of geological interest around Lyme Regis that have been collected so far.

All in an evening (and a half)'s work.....