Skip to main content
March 7, 2008
Question

zip code radius search

  • March 7, 2008
  • 2 replies
  • 371 views
PHP/MySQL

I want to build a search query that has several filters, including a search by zip code with a drop selected radius of miles from that zip code... similar to many jobs sites and other store location types models.

Any suggestions?
This topic has been closed for replies.

2 replies

March 10, 2008
using php.

i've found some databases with zips, and some codes... but right now i'm contemplating on whether it's even worth doing... a lot involved.

anyone had a great way of doing this that's really simple?
Inspiring
March 8, 2008

Not tried this, but used some of the databases for other things.

http://www.ip2location.com/ip-country-region-city-latitude-longitude-zipcode.aspx

above will get you the users zip code along with latitude-longitude

below is for asp users to calculate the distance between latitude and the
longtitude. they have this avail for other code formates too.


ASP
http://www.geodatasource.com/samples/distance.asp.txt

calculations for other programming languages

http://www.geodatasource.com/developers.html

k