English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Okay I am trying to create a site that finds users within a certain distance of their zipcode.
There are roughly 42000 zipcodes.

When a user creates a request to find people within a 100 mile radius of their zip do I...

either...

1/ Seacrh a zipcode dtabase that contains long and lat, calculate all zips that are within 100miles of their zip (this would require 42000 calculations) and then search all the users with the selected zipcodes.

or

2/ Do I already have a database with every zipcode within a hundred miles of each zipcode. Therefore, when a user requests users within 100 miles, I can simply select the 10 mile radius zipcodes for that users zipcode.

Or am I completely wrong. How do sites like myspace find users within a certain radius of a zipcode?

Thanks to any responders.

2007-01-14 19:22:48 · 1 answers · asked by jonnie b 1 in Computers & Internet Programming & Design

1 answers

Number 1. Good thing, many others have done this before, so it depends on your data set and programming platform.

http://www.kevinroth.com/projects/project.asp?id=85

ie
http://forums.mysql.com/read.php?23,3868,3868

2007-01-18 03:50:52 · answer #1 · answered by nuprn1 2 · 0 0

fedest.com, questions and answers