Hi pugdog,
I have a plugin I wrote for Zip code radius search. It is simple and works pretty well.
I'll trade you (license for license) for a copy of your Thumb_Images plugin.
Features:
Works with multiple Zip Code databases available on the web.
A Link to a free database of zip codes.
Units: Miles, Kilometers, or Nautical Miles
Max search distance variable.
Sorting ASC or DESC.
Optional Category restricted results and search form.
Optionally add searches to existing Admin search logs.
Automatic updating via pre/post hooks on add/modify
I am working on a "release" version now. It can be seen at supportmusicians.com.
I will have to explain it a little seems I don't have instructions or an sql installer for
the Zip Code database as I have to learn how to do that yet.
As far as testing goes, I have very few links in my db, so try within 53140 and distances of
1 mile, 5, 20, 30, 50, 236 and 250. Then try from the other end (54720) distances 1, 27 and 236.
I was just doing some testing, and just for fun (and my reference, teehee)...
My band "Three Chords & the Truth" (53140) is 236 miles from my brothers
band "Twain Trax" (54720). I don't pick up 54720 until 236 miles (and vis versa). Nice test :-)
I currently get 3 additional results when increasing distance from 50 to 236 (from 53140).
This is correct because all 3 bands additional bands are IN zip code 54720.
If I do a search from 54720, distance 5 miles, I get these 3 bands. Looks good so far.
Interestingly, when I increase to 250 miles (from 53140), I pick up 1 more band "Bear Creek" (54736).
So using my zip of 53140, I theorized that Bear Creek (54736) (dist 250 from me) is 14 miles from
Twain Trax (54720) (dist 236 from me). So, I expected that a search from 54720 distance of 14 miles
would increase results from 3 to 4 (adding Bear Creek - 54736), but they do not get included
until 28 miles. This is an error of 14 miles because 54720 to 54736 is 28 miles when searching
from 54720, yet when searching from 53140, 54736 (250m) appears to be only 14m further than 54720 (236m).
But I don't know if you can do the math that way or not. I know I have done closer searches and
the distances seem accurate within a mile!
Anyways, that testing babble was more for me :-)
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com