scrubbicus Posted March 7, 2009 Share Posted March 7, 2009 So I need to create a form that enables someone to search by zip code for the closest local representative. How might I go about doing this? This involves a lot come to think of it, has to calculate distance and each representative. Would I have to go about individually entering locations and using if statements with a database or is there a much easier way? Quote Link to comment Share on other sites More sharing options...
Philip Posted March 7, 2009 Share Posted March 7, 2009 Google is your friend, first one off the list: http://www.micahcarrick.com/04-19-2005/php-zip-code-range-and-distance-calculation.html Quote Link to comment Share on other sites More sharing options...
scrubbicus Posted March 10, 2009 Author Share Posted March 10, 2009 Wow that's awesome. So this script finds the distance between zip codes. Now I'll need to get the zip codes that every representative person resides and then create something where the user types in there zip code then it finds through distance the closest zip code that has a representative. A challenge for me then, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.