Shouldn't the location module provide a CCK field?

Are there plans to implement a CCK field in the near future?

How would a CCK/location integration look like? location goes CCK or rather an optional interface to CCK?

Thanks for your great module, btw...

Alex

Comments

ankur’s picture

I know there is currently work for a 'zipcodes' module for CCK, but I've only thought about making location module a CCK module, but haven't actually looked into it in any way.

I think the 'zipcodes' module is the wrong way to go (though perhaps a start for the right way to go) since the location module was originally born out of a need for a simple 'zipcodes' module with a proximity search fn. However, before implementation even began, there was a bunch of input and good reasons from the CivicSpace community about how it should include other address fields as well. In anycase, if you're interested in taking a look at the zipcodes module, browse the CVS at http://cvs.drupal.org/viewcvs/drupal/contributions/modules/zipcode/

I personally think location module should be a CCK module as it might well help the 'location as a venue-node' issue at http://drupal.org/node/111574 (with some kind of integration w/ the nodereference module)

-Ankur

mariuss’s picture

I added a somewhat related feature request: "See map" CCK field:
http://drupal.org/node/139983

ms2011’s picture

There is already an Address field for CCK: http://drupal.org/node/143423
I think someone should integrate it with the Location.module.

I also think we should separate the various fields that make up an address. For example, what if all you care about is the state and country where a node is located? If the fields were CCK fields, and they were separate, you could simply add a State field and a Country field, and then let location.module provide the latitude/longitude for the general center of the state or however specific you chose to allow the user to go using various combinations of the fields.

Hoping someone will have time to build something like this soon! :)

ray007’s picture

I've already written about integrating the cck address field with location in an issue over there, but the response was not exactly overwhelming ...

bcn’s picture

+1
subscribe...

lias’s picture

There is a very new module here: http://drupal.org/project/see_map that may be of interest.

ms2011’s picture

Status: Active » Closed (duplicate)

Ok, so I started doing it myself and posted a patch here:
http://drupal.org/node/183004#comment-634112