Address Field or Text Fields with Auto-Complete?

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

Hi All,

I've been through a couple tutorials on mapping with Openlayers where they get position information through Geocoder using either Address Field or, alternatively, a single text field with Auto-complete.

Is there any advantage of using one or the other to derive coordinates? From the looks of it, it seems like the simple text field is a bit more svelte.

Thanks for any advice,

LEO

Comments

From the Address Field

Sinan Erdem's picture

From the Address Field project page, the module does:

  • Standardized storage of (international) postal addresses based on the xNAL standard [the same format used by Google Maps for geocoding]
  • Per-country edit form and formatting of addresses

But a normal text field keeps whatever you put into it as it is.

So, in short, address field organizes the info in a structure which is suitable for addresses.

If you want some other detailed operations on your addresses, like getting country data, or formatting, etc., then you need address field.

Re: From the Address Field

leoklein's picture

"So, in short, address field organizes the info in a structure which is suitable for addresses."

Yup, would probably help then when creating views based on (U.S.) cities, states, etc.

Thanks.

Address Field is good for well known recipes

orkutmuratyilmaz's picture

for example, you can use Address Field for this recipe:

http://drupal.org/node/1714680

or this one:

http://drupal.org/node/1365574

or this one:

http://drupal.org/node/1637658

or this one:

http://www.istos.it/en/blog/mapping/openlayers-and-addressfieldis

and so on:))

but if you'd like to try a custom recipe, you may choose simple textfield too:)

by the way, you may customize your Address Field by this module:

http://drupal.org/project/addressfield_tokens

Re: Address Field is good for well known recipes

leoklein's picture

Thanks. Great help -- I'm just getting used to mapping.

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