Custom Fields for Location CCK module?

Events happening in the community are now at Drupal community events on www.drupal.org.
sbauch's picture

I'm working on a site that is a database of apartments in NYC. I would like to relabel or use more/different fields in the Location section to make the submission form more compatible with NYC addresses. Particularly I would like to have a field for "Borough," "Apartment #," and "Neighborhood." If I could change the label "Additional" to "Apartment #" it would solve that field, and I could even go with changing the "City" label to "Borough" but would prefer a drop down list rather than a text field input. I know I can add these fields as custom CCK fields, but then they show up in a separate grouping on submission form, which I feel is no good for user experience.

This is my first Drupal site.

Comments

Are you really want to use location?

marcusx's picture

I had a similar problem some weeks ago and did a lot of testing with the different geo moduls for drupal. As was recomended here and from other people I used OpenLayers Geocoder and Tokens in the end. It's more flexible and you can create exactly the fields that you need and let them fill automatically by the geocoder.

You can use all the values you get back from the geocoder and put them in fields how ever you want. What things you can have back from the geocoder you can read about here:
http://nuvole.org/blog/2010/apr/07/introducing-openlayers-geocoder

Displaying the texts fields

sbauch's picture

Thanks marcusx, Openlayers is working great for me, much better than location. I have a few other issues/questions.

  1. When displaying a node, in addition to the map, how can I also display a text value for the street address? Ideally I would like to restrict the output just to the street address, leaving out city, state, etc.

  2. I haven't started to check this out on my own just yet, but is my openlayers wkt field going to work with node import? Any advice on tackling the import of many nodes? The fields in my .csv I want to import have Street Address, Apt#, Borough, and Neighborhood. I could add the city field easily since all nodes are in NYC. I'll be trying this myself today but I foresee some difficulties so I figured I would ask here first.

  3. As one commenter asked in the link marcusx provided, is there a way to restrict the geocoding lookup to just NYC?

Thanks

Location and Mapping

Group organizers

Group categories

Wiki type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: