How to get addressfield geocoded on import with Feeds? I am using Drupal 7.10 with the Feeds module 7.x-2.0-alpha4. The data I'm importing has address data that will be imported into my content type's address field, and the content type is also using the field implemented in the Geofield module, which holds coordinates and it is set to be populated from the address field when a node is saved.

However, when I import the data into nodes, the nodes are not geocoded; if I then edit the node, and save it, the node will be geocoded, and my map will display.

How can I get the Feeds module to trigger geocoding upon data import?

I just found an issue about this: Feeds + Addressfield Integration.

UPDATE

Found the issue about "Creating Your First Map Using OpenLayers, Geocoder, and Feeds" which references a patch. I tried this patch and re-imported my nodes. However they still were not geocoded.
The way that your Geocoded data will populate after save indicates that there is some hook in the geocoding module that triggers after a save. Perhaps the initial save in feeds bypasses this.

I suggest you find in the Geocode module the point at which this save is triggered, but as a work around for you which should work, trigger another save once feeds has saved your node.

Create a custom module with a hook_feeds_after_save, then call $entity-&gt;save() on it again to issue a re-save and that should force your Geocoded values to populate.