Using OpenLayers Geocoder to auto-fill-in address fields

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

Hi, all. I've just started playing around with the OpenLayers Geocoder module to input locations, and one of its features is auto-filling-in address fields. You can read more about that in the announcement of OpenLayers.

Currently, however, OpenLayers Geocoder won't auto-fill-in address fields located in either location.module (#1030432) or addresses.module (#910308).

The documentation (in the form of that blog post) seems to suggest simply creating normal CCK text fields to hold the data (street, city, state, zip code, etc.).

Apart from there being no input checking (e.g. making sure the zip code field contains a valid zip code) or helpers (automatic listing of states or countries), I'm wondering if that's the best forward-compatible method. If a bunch of location data is entered into a handful of CCK text fields, and two years from now we want to migrate to another location or mapping method, won't having them in all of those different fields make things more difficult? And wouldn't having this information in this field restrict using that location data outside of OpenLayers-supported ways? (e.g. in views, views filters, faceted searching, etc.)

I'm new to OpenLayers, so maybe I'm just missing something. Are others using the auto-fill-in feature of OpenLayers Geocoding, or the Geo+Geocode module options? How are you storing your location data?

Comments

Any tips/ideas?

rootwork's picture

Just curious if anyone else is working on this. I've been looking around for blog posts; most of them involve just using regular ol' CCK number fields for lat/long. Is that how others are doing it?

I am also interested in this.

j0k3z's picture

I am also interested in this. I dont think using cck fields is the best solution long term. It would be great if it could auto fill the fields of the standard location module, specifically for seamless views integration.

Location and Mapping

Group organizers

Group categories

Wiki type

Group notifications

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

Hot content this week