I just proposed a compass API for the Moblin Sensor Framework. We'd like to eventually make it part of the browser so your web app can use the data (See Andy Idsinga's post). But for now on the Moblin platform, it's a GObject API. Go have a look and tell me what you think. If you have an application that needs compass heading information, does it provide what you need?