Hi,

What is the main architectural difference between using Addressfield/Geofield combination vs Location module ?
- Is geocoded data stored in database in both cases ?
- Is there any cost/license advantage of using one over the other when the site traffic is getting considerable amount. e.g. if you use
proximity filter that requires geocoding... ?

Thanks for your feedbacks

Comments

alex.a’s picture

Having recently switched from D6/D7 location + GMap to D7 addressfield + geofield + geocoder, I noticed these differences:

• Each of the addressfield, geofield, and geocoder modules does the thing that is implied by its name. addressfield handles and stores addresses. geofield handles and stores coordinates. geocoder converts addresses to coordinates. This seems more modular than the location module, which does all 3 things and stores address and coordinates in the same table.

• D7 addressfield and geofield are better integrated with the D7 field storage mechanism.They store all data in tables with the prefix field_data_, without using any additional tables. The location module uses its own separate tables, "location", "location_instance" and stores just a key in the field_data table.

• The Location table is easier to understand than the geofield table, if you ever need to alter it directly, outside drupal. The geofield table has a _geom blob and a _geohash varchar field, which I don't know how to fill directly in the database without going through an API.

Geocoded data is stored in the database, in both cases.

addressfield + geofield use 2 tables, so they might perform better than location which uses 3 tables.