hCard to Google Maps conversion script

This is just a simple example of a script that goes through all the hCards in the document, checks if they have geodata and creates a map showing each of the ones with geodata as a marker with the rest of the contact data as a popup on the map.

Check the source of this page to see the hCards that generated this example map. Many thanks to John Resig for his great addEvent() and Stuart Colville for his getElementsByClassName() method.

Christian Heilmann
Yahoo! UK Ltd
125 Shaftesbury Avenue
London
WC2H 8AD
51.513577, -0.12866
Amato
14 Old Compton Street
London
W1D 4TH
51.513577, -0.13