Find related node by location (view block for proximity or match to country)
defoo - April 19, 2009 - 17:58
| Project: | Location |
| Version: | 6.x-3.x-dev |
| Component: | Location_views |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi, I am trying to create a block in views to display related nodes that are in close proximity of the selected node (each node has a location entered by the user, the function is provided by the location module). After trying for several hours, it seems to me that I can only compare the selected node with a predefined coordinates. However, what I wanted is that the reference location actually changes in respond to the selected node.
For example, if I am viewing a post with the location in Canada, the block should show all other posts that have the location as Canada.
I am wondering if someone here tried to solve the same problem before. if so, please share your insight.
Thanks a lot

#1
try an issue search in this location issue queue for the tag:
location proximity view to author of node
or
location proximity view
or
location view arguments
You might be able to use a patch to match the country field, that might be easier to get than the proximity view...
Maybe someone else can post too to answer. But I wanted to point you a bit in a direction.
#2
"I am trying to create a block in views to display related nodes that are in close proximity of the selected node (each node has a location entered by the user, the function is provided by the location module)."
Exactly the same I want to create and I couldn´t find a solution. Did you solve the problem? I couldn't find a way to use the long/lat from selected node as an argument for the view.
I want to create a view:"show a list of related nodes around: selectable filter (50km ; 100km; 200km; 500km)"
#3
Subscribe...this seems like a no-brainer feature that is really hard to figure out right now. Any solutions?