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.
If anyone can help I am completely lost
Thank You Ahead of time
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.
If anyone can help I am completely lost
Thank You Ahead of time
Or alternatively... use Google Maps.
- 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).
If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:
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.