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
Comment #1
XmhO commentedI 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.
Comment #2
jon nunan commentedIt 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).
Comment #3
stovak commentedSo 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
Comment #4
legolasboClosing old D6 issues as D6 is end of life