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.


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.

  • Downvoted and voted to close. It would be helpful if people gave some indication as to why. As it stands now, this is still an outstanding problem which I need a solution to.
    – User
    Jan 17, 2012 at 15:07

1 Answer 1


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->save() on it again to issue a re-save and that should force your Geocoded values to populate.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.