Thanks to the Geofield proximity filter, I have a block that shows the 3 closest hotels to a user viewing a node.

However, I would like for the user to be able to click on a 'view more' button to take them to a page with all of the nearest hotels in proximity order.

However, I can't seem to find a way to make the source origin point pull from the nid being passed.

For example, I would like for a user to visit the following view page

/nearby-hotels/%/nearby

Where % would be the nodeid of the attraction (which has a geofield as well).

So, is is possible to set the lat/long from a geofield found in the node of an id passed to a contextual argument in a view page?

Sorry If I am not explaining it well.

Comments

jemisond’s picture

Been searching for a solution tot his as well!