[uf-new] nanoformats for airports and flights

Paul Downey paul.downey at whatfettle.com
Fri Dec 14 10:15:39 PST 2007


Hey up,

I'm a big fan of nanoformats*, in particular for Twitter
and have been experimenting with presenting tweets as
HTML marked up with microformats and links at the top
of my blog page using a simple Javascript plugin:

     http://blog.whatfettle.com/twitter.js

The plan is to turn this into a stable archived page
using a Wordpress plugin, but really it's the regex'es
I'm experimenting with and intend to document.

I'd like to extend this to support other formats, so
was interested in James Govener's suggestion for a nanoformat
to tweet about a flights:

     http://twitter.com/monkchips/statuses/500282082

I wondered if people were using such a thing already?

My preference is for something like:

     F:LHR-BOS
     F:LHR-BOS-SFO
     F:LHR-BOS-SFO-SYD
     F:LHR-BOS-SFO-SYD-LTN

which could be easily turned into into a link such as:

     http://gc.kls2.com/cgi-bin/gc?PATH=LHR-BOS%2C+BOS-SFO%2C+SFO-SYD

using a regex such as:

     s/-(?=\w{3,4}-)(\w{3,4})/-$1&$1/g;

Guess I should just start using it and see if I can get it to,
ahem, take off.

For the generated HTML I wondered if there's a
class="iata", class="icao", class="airport" or even
class="flight" microformat already?

I can't believe I'm the first person to suggest this given there
are lots of examples in the wild, such as "nearest airport"
in an address, and the names have been standardised:

     http://en.wikipedia.org/wiki/Airport_codes

Paul (psd)
--
http://blog.whatfettle.com


* nanoformats:
     http://microformats.org/wiki/twitter-nanoformats
     http://twitternanoformats.wikispaces.com/






More information about the microformats-new mailing list