Proximity search by zip code? (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


travismp -> Proximity search by zip code? (5/5/2008 9:31:14)

I have a current ASP page where a user can search by city, st, or zip code and it will show results based on the search criteria. If my user types a zip code that is not in our DB then it says "no results found"

How do I set up a search by proximity field? Thank you.




travismp -> RE: Proximity search by zip code? (5/5/2008 9:50:21)

Also I am willing to buy software if needed to make it work easier. Thanks.




rdouglass -> RE: Proximity search by zip code? (5/5/2008 10:26:55)

I built one using a Public Domain ZIP code DB that lists the longitude and lattitude of the ZIP code. Then I use a stored procedure that uses the Pythagorean theorem to find the closest ZIPs.

I would *not* recommend this with an Access DB at all but rather SQL Server. (Well this stored procedure is for MS SQL so I guess that's what I recommend. )

How comfortable are you with SQL Stored Procedures?




travismp -> RE: Proximity search by zip code? (5/5/2008 10:31:05)

I have no working knowledge of SQL at all. Also there is not a SQL application loaded on the web server.




rdouglass -> RE: Proximity search by zip code? (5/5/2008 10:46:18)

My solution won't help then - it does require SQL Server. Sorry.

What databse engines are available to you? mySQL? I wouldn't know personally but I bet you could do the same with mySQL and stored procedures. I'm not familiar with one but I'm pretty confident they're out there somewhere. And the procedure is not anything MS SQL specific that I can see.

I wouldn't touch this with Access.[:(]




travismp -> RE: Proximity search by zip code? (5/5/2008 11:01:01)

That is OK, thank you for the consideration. Eventually I will have SQL available, but right now it is not an option. I may just put the project off until then. Thank you rdouglass.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.699707E-02