I have a list of addresses and businesses and I would like for my visitors to be able to enter their zipcode and it show all addresses within 50 miles.
Save a list of the businesses, their latitudes and longitudes as an array on your server.
Have some way of converting a zipcode into latitude and longitude.
Search the lat/long list of businesses for anything in a radius of 50 miles of the location of the user. This should be fairly arbitrary using basic mathematics.
Output the entire list of results in some order (ie, give a choice of which businesses they want).
I have a list of all the zips with latitude and long but I have no idea how to compile all the information to make it work I am looking for someone that may be able to help me get it done.