Change of tack

When I started down this road, I did a bit of research on Drupal.org modules list to get the correct module to store the latitude and longtitude.

I had settled on locationfield module, but after an email discussion with the maintainer Greggles, I was advised to use the Geo module instead.

It's still in a state of development, but maybe thats a good thing, and I might be able to test things.
I can't forget this is primarily a learning experience!

I have a demo site up at
http://drupal5demo.cycletraffic.com/
and we can see a node with a geo field at
http://drupal5demo.cycletraffic.com/node/3.

The Latitude and Longtitude are displayed as
Geopoint:
POINT(51.828969 -8.008733)
and the HTML code looks like this.

Geopoint: 

POINT(51.828969 -8.008733)


But I need it to look more like this

GEO:
37.386013,
-122.082932


as take from http://microformats.org/wiki/geo.

So What are my options?
My old favourite is a custom type template file for the content type.
And that's where I'll start in my next posting.
But there are other options, in fact Drupal being Drupal, there are many options.
http://drupal.org/node/62466 lists 2 other ways.
I could theme the individual CCK field with its own template file, or I could provide a 'field formatter' in a module.
I submitted a feature request for this here.
I'll come back to these options much later, but I'll stick to what I know for now.

Filed under: drupal, javascript, mapping