Webmastersite.net
Register Log In

Zip Radius Question

Comments on Zip Radius Question

webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Aug 11, 2008 - 11:34 AM:

I now have the Zip Radius search working just as I want it, but i wonder if an enhancement would be possible, and I would be willing to pay if it is possible. (For some reason I doubt it is possible though)

1. I would like the search result produced by Zip radius search to be displayed in order of distance from the searched zip code. For instance, if someone searched within 30 miles of a zip code, chances are, many listings in many different zip codes will show up, I would like them in order of closest to searched zip code.

2. Would it be at all possible to display how far in miles each result actually is from the searched zip code.

3. With UK Post code searching, the database is made up of just the firt part of each pot code (There are way too many UK post codes to have each full post code in the database). For example, My post code is PE37 7EU, whereas the post code in the database is just PE37. If one of my site users searches PE37 7EU, no results will show up because it is not exactly as in the database, is it possible to have a mod that allows someone to search a full post code like PE37 7EU and the search and database treat it as if they had only typed PE37.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 11, 2008 - 5:03 PM:

1. I can't do it.

2. See #1.

3. Will set to trim that when the default country is the UK.

(There are way too many UK post codes to have each full post code in the database)

Canada has 800,000 but I'm adding those.
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Aug 11, 2008 - 9:15 PM:

There are 2.1 million UK post codes. If I got a csv of these would it be possible or am I right in saying that is too many.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 11, 2008 - 11:57 PM:

jayweb wrote:
My post code is PE37 7EU,


Small World! I'm just the other side of Downham Market to you! I was actually visiting somebody just down the road from you a couple of weeks ago.
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Aug 12, 2008 - 9:20 AM:

Blimey it is a small world, I live just off London street in Swaffham.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 12, 2008 - 8:12 PM:

If it's a small world it shouldn't have so many postal codes.

jayweb wrote:
There are 2.1 million UK post codes. If I got a csv of these would it be possible or am I right in saying that is too many.


Well, it's possible but it'd probably slow down queries noticeably. If the first half of the code is specific enough then it's better for performance.

Why is there a postal code for every 29 people anyhow? Might as well use a personal identification number if it's going to be that specific.
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Aug 12, 2008 - 8:53 PM:

Almost every street has a separate post code, some streets extend to two post codes
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Jan 17, 2009 - 6:10 AM:

.... With UK Post code searching, the database is made up of just the firt part of each pot code (There are way too many UK post codes to have each full post code in the database). For example, My post code is PE37 7EU, whereas the post code in the database is just PE37. If one of my site users searches PE37 7EU, no results will show up because it is not exactly as in the database, is it possible to have a mod that allows someone to search a full post code like PE37 7EU and the search and database treat it as if they had only typed PE37....


This did work for a time, but no longer seems to work. If someone searches PE37 the results are correct, however, if someone searches PE37 7EU it no longer works. It really needs to trim PE37 7EU to search PE37 as most people will enter a full post code.

In other words, if someone enters PE37 7EU or any other fll UK postcoode, it needs to search as if they just entered PE37.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 18, 2009 - 6:49 AM:

Stopped working when the countries had to be changed from numbers into literal strings a while back. Fixed.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.