I created a field collection for my geolocation needs.
Just added an addressfield and a geofield and configured the geofield to "geocode from the addressfield".

I added the collection to 2 entities but the geocoding doesn't work. It seems the geocoding is never "invoked" when editing the fields.

There are no errors reported/logged but from my first debugging the geocoding code does not ever get invoked.

When I create the same fields directly in the entities, everything works fine, instead, that's why I opened the issue here in "Field collection" and not in another project.

Comments

nod_’s picture

Try patching geocoder with this http://drupal.org/node/1297654#comment-5286836 and try again.

deanflory’s picture

I'm finding my field collection that uses addressfield+geofield+openlayers view for a current user's location is causing a panel page to return a "Page Not Found" error when a separate view that collects the results for all users for display on one map. I'm just getting into investigating this but have tested it a few times by adding and removing the field collection based view and it appears to be consistently making that panel page unlocatable (not good for my home page). I'm going to test this out without a field collection to make sure it isn't something else but wanted to note this here as I am using the latest dev versions so the patch mentioned above is already applied to the latest version of the geocoder module.

kaizerking’s picture

I also have this problem, not only with address field, i tried with location filed also
only latitude and longitude is displayed if the address field or location field are used in nodes then all the fields are displayed there seems to be grouped fields when they are attached to field collection they are not recognized ,
the above mentioned patch doesn't apply

jsibley’s picture

Issue summary: View changes

I believe that I am experiencing the same problem. I have an addressfield and geocoded field within a field collection within profile2. Some addresses are not being geocoded, even when I try to make changes to an address.