Jump to content

PHP and zip codes


monkeymade

Recommended Posts

I am not sure if this is PHP or what, but I assume that it can be done using PHP along with something else.  What I am trying to figure out how to do, is figure the distances between zip codes.

I have seen this done on personals, ebay, and a plethra of other sites.  A form asks you to put in your zip code, and show results within x amount of miles.  This would be easy of course if I just had it search the database for anything within 50 or so zip codes, for example a 43611 code (my own) would bring back a 43659 zip code.  But just because they are within 50 zip codes of each other don't tell me the millage (in this case, its only 2.5 miles).

Maybe a soap method? I don't know, thats why I am here.  What can you guys tell me about this?

The way my database is going to be set up is that it will have usernames, passwords, and home addresses, including zip codes.  I want other members to be able to just enter a distance and find other members within that set distance.

Thanks for any help you can offer with this.....
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.