And Back again...

Well, the Geo module looks pretty comprehensive, but it's not quite ready, and I'm not quite ready to tackle it. I went back to the cck_latlon module for now.

The default Latitude Longitude output of the module is

Latitude Longitude: 

51.828969, -8.008733

Not too disimilar to the Geo module, in fairness. The difference is in the raw output to be found in the $node object. Gee module keeps latitude and longitude together in a single text field, whereas the cck_latlon module's output looks like this <?php [field_lat_lon] => Array ( [0] => Array ( [lat] => 51.828969 [lon] => -8.008733 [view] => 51.828969, -8.008733 ) ) ?> Because the Lat and Lon are seperate I can work with this. In my node-event.tpl.php file I can place
Lat/Lon: <?php print $field_lat_lon[0][lat]; ?> <?php print $field_lat_lon[0][lon]; ?>
which produces my Geo microformat .
Lat/Lon: 51.828969 -8.008733

Filed under: cck, drupal, javascript