Hi, this is actually for D7 but there's no D7 version to associate this with...

I can get proximity search working fine when a Node has a geofield. However, if I have the geofield in a Field Collection on the Node, then the Nodes won't show up when I apply the proximity filter. Has anyone overcome this issue before? If so, please send a tip. Thanks.

Comments

garciac1212’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Priority: Normal » Critical

Same prob but trying to get it to work on user profiles not nodes. doesn't seem to support that yet. Changing this issue to the version 7 portion...

mdlopresti’s picture

subscribe

julianmancera’s picture

StatusFileSize
new24.07 KB

Hi all,

I'm currently working on a new module Open Layers Proximity Entity to handle this request, I have get to the point were the a new db table called open_layers_proximity is updated with the entities geofield changes. I will need so help with the views integration thought, not sure how to proceed here. Let me know if someone is able to give me a hand.

Attached the new module for entities.

Regards,

Julian Mancera

rosewoodmarketing’s picture

I doubt I can help, but this is what we need...

adamzimmermann’s picture

@julianmancera

I may be needing this functionality for an upcoming project and I wondered if you had made any progress on this? I can definitely help you out with finishing it if the project is green-lighted. So if you have made any progress since your last post, could you post it please? Otherwise, I will just start working with what you posted above.

Thanks,
Adam

chapsou’s picture

I'll need this module for my current project and maybe i can help you too .
Keep me in touch .
Thanks

loze’s picture

I may be able to help as well. whats the current status?

loze’s picture

Category: support » feature
Status: Active » Needs review
StatusFileSize
new25.13 KB

So I need this for a project. Specifically the ability to do proximity searches on Field Collection and User entities.

I took the mod in #3 a bit further working on the views handlers. It is sort of working for Users, Profile2, Field Collection, and Node entities.

The distance field doesn't seem to be calculating the correct value, so sorting and displaying the distance appear to be off. But the result set does look accurate. (all within the specified radius)

I'm hoping someone can help expand on this. Views is making my head hurt.

adamzimmermann’s picture

After some more research on this, I found that this functionality is already being built into a new release of geofield. So there is now one less module to install, and it is working on entities and even through relations just fine for me. You can even set custom origin points based upon the active user, but you are currently limited to using fields from the user profile. I am working on a patch that will allow you to grab fields from profile2 or other entity types to set as the origin for doing proximity filters.

http://drupal.org/node/1469956