I'm using Drupal 7 with Views 3 module and Location 3 module installed.
I have a content type that has a Location type field and I would like to build a view that given a latitude/longitude input and a maximum distance i have to retrieve all the nodes that are in this range. Is that possible with views or I have to build something by my own (in this case can you show me the way on how to implement it).
Thanks a lot for your help
Danilo
Resuming the question problem is the following:
I have a problem setting a View to show the closest nodes of another (I'm using last dev version of views and locations on drupal 7). So my scenario is the following: I have 2 differents node types (A and B) both with a location field. I want to build a view that given a node A (with a determinate location) a have to retreive all the nodes B in a distance of 2Km. So to do that I created a view with the following filters:
- Content: Type = B
- Location: Distance / Proximity, with the parameters
- {origin:"node's lat/lon from views nid argument"}
- {Node ID argument to use: (it doesnt allow me to select any data)}
- {Location to use:"CCK Location: field_A_loc"}.
I also added a contextual filter. I selected as contextual filter:
- {Content: Nid}
and I added % to my path so now the pat is /myviewpath/%. This allow me to choose the value:
- {Content: Nid} in the field "Node ID argument to use" of the filter "Location: Distance / Proximity".
So i try to run the view but I get no results when the view is called as mydomain.com/myviewpath/3 where 3 is a A node.
I also tried to do not use the contextual filter (that does not allow me to set the "Node ID argument to use" in the "Location: Distance / Proximity, with the parameters" filter) and running the view mydomain.com/myviewpath/node/3 but in this case I get the list of all B nodes..
What I'm doing wrong setting up this view??
Thanks in advance for your help