Microformat Shiv

A light weight cross browser JavaScript Microformats parser

geo Example

Below is an example of the Microformat Shiv parsing a geo. This microformat is used to describe a location by latitude and longitude. It is based on the WGS84, the world geodetic coordinates system. You can check the compliance of the Microformat Shiv to the geo standard on the microformats test suite.

Northern California

Code to parse the geo

var domNode = document.getElementById('geo-example');
var jsonObject = navigator.microformats.get('geo', domNode);
   
alert(JSON.stringify(jsonObject));