Ok, I know how to do the formulations to find the distance between to zip codes by using their latitude and longitude points. However, that is all I know how to do.
I have a database with all zip codes and corresponding latitude and longitude points. I want to create a search on my site that finds closest 'dealers'.
Such as put in your zip,,,, choose 10, 20, or 30 miles radius and then run the search of zip codes that fall within that range.
However, I do not know how to create the coding that allows the search to grab all the zip codes (due to lat/lon) that fall within the distance. Is the program gonna have to run through my database of thousands of zips and try everyone???
I'm stuck, any suggestions or tutorials are greatly appreciated.
Thanks
Ryan