Hello,

I would like to be able to retrieve by proximity sorting some of my nodes thanks to an argument that I would give when I call my view.
The argument would be the ZipCode, and then It'd show me the nodes that are located, sorted by proximity.

Is it possible?

I mean I already tried http://drupal.org/node/357295 and http://drupal.org/node/767316 and so on, but It doesn't work: either it is a search with latitudes/longitudes in arguments, or it is a zipcode but in views EXPOSED filters, but I want this to be a postalcode.

I don't know if it is possible, but if it isn't, is it possible then to retrieve latitudes/longitudes from my postalcode and THEN to make a view with latitudes/longitudes in arguments?

Thanks a lot.

Comments

XmhO’s picture

I finally gave up and used an exposed filter that I put as a block in the page, in order this to do the job.

I haven't found the solution about arguments... If somebody finds it, tell us ;-)

Bybye.

jon nunan’s picture

It should be working, are you selecting 'Location: Distance / Proximity' in the argument section?

Also make sure you are appending a distance to the end of the argument in the format postcode_distance

e.g.
90210_10
Will get locations 10 miles around 90210 (the miles unit can be changed in the argument options).

stovak’s picture

So i've done this "close2u" sandbox module. Hoping to take it to full module status. Adds a drupal block with a google map and returns nodes closes to the browser's geolocation object response. If no response, allows postal code entry.

http://drupal.org/sandbox/stovak/1262930

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing old D6 issues as D6 is end of life