Hi @all,

sorry for my bad english, this is the first time that i try to submit a patch/issue. I tried the location proximity filter in views2 but its only work when distance is set to 0. So i searched and found that the proximity filter uses the deprecated function location_latlon_rough() in location.inc - this function calls the country depended function but in some supported files like the german (location.de.inc) is the function location_latlon_rough_de() missing. One way to resolv this problem is to add the missing function or use the location_latlon_exact() function in location.inc this uses the geocoder services. So i wrote a little workaround that falls back to location_latlon_exact() when location_latlon_rough_xx() is missing.

best regards
Blackice2999

CommentFileSizeAuthor
#6 location-1.patch305 bytesdawehner
location.inc_.patch475 bytesblackice2999

Comments

danieldd’s picture

I just want to confirm that this patch completely resolved the proximity search issue for me too - thanks.

In my case I was using UK postcodes.

Also, with this patch you can effectively search against a full UK postcode (not just the first part of the code) providing the full postcode is entered without spaces.

timlie’s picture

Works for me as well!!!!! Thanks a lot!

Belgian postcodes here!

danieldd’s picture

Just wanted to add that with this patch the proximity filter looks up places as well as postcodes.

Eg (in the case of UK) it also enables you to search for proximity to "cambridge" or "victoria station london".

I have been using the patch in a production environment for a few months.

I really hope this change has been implemented in the latest release of the module.

yesct’s picture

Status: Patch (to be ported) » Reviewed & tested by the community
Issue tags: +Location proximity view, +location proximity view zip code, +location bdragon check

Someone please compare this patch to some of the other solutions to proximity and zip code searching/filtering.

yesct’s picture

a more formal review like:
http://drupal.org/patch/review

might help the maintainer more quickly evaluate this patch. Please give a more detailed review.

dawehner’s picture

StatusFileSize
new305 bytes
+++ location.inc	(working copy)
@@ -272,13 +272,12 @@
-

Removing this line does not make sense

Powered by Dreditor.

The patch worked fine, i added the line back

rooby’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -Location proximity view, -location proximity view zip code, -location bdragon check

Automatically closed -- issue fixed for 2 weeks with no activity.