I have a database with a series of entries (no more than say 10s of thousands) where one of the fields is zip code.
I am looking to create a script that when given a zip code and a mile radius (like 50 miles, 100 miles), I can find all the entries that are within that range.
I have seen many articles and scripts on the web that allow one to do this, but they often do this by including a somewhat hefty database of their own.
Is there a way to this using simple calculations where no database is needed?
NOTE: accuracy is not a big deal. If it works for 60 miles when 50 miles is entered, that is perfectly fine.
EDIT
I am noticing a lot of answers that involve getting the lat/lon of the zip code, however, the database only has zip codes stored, so can I assume this includes retroactively getting/storing the lat/lon of each entry into the database as well?