> For example I would like to find TACO BELL with in 20
mile radius.
Are you only interested in Taco Bell? What about Burger King?
There are two setups you need to do:
- Get the zip codes for every Taco Bell in the country and
put them in a database.
- Then download the latitude and longitude zip code directory
from
http://www.zipcoderesearch.com/geo.html
($49.99).
I presume the user would enter an address, including a zip
code, and the number of miles for the radius, correct? Use the zip
code directory to obtain the latitude and longitude of the user's
address.
Do some trigonometry on the user's lat/long and use the
directory to create a list of acceptable zip codes within the
desired radius. Then query the database using the list of
acceptable zips.
(There's a lot of assuming goin' on here.
🙂 )