Hi. I've recently acquired a zip code database which lists all zip codes, cities, and their respective latitudes and longitudes.
I can calculate the distance between the zip codes using the latitude and longitude, but what I want to do is find only those zip code distances that are, say, within 20 miles of each other.
I'm getting stuck on how to query that. My zip code distance is in a separate php function. How would I go about just listing the stores that have a returned function value of 20 or less?
I hope I've been clear enough in what I'm trying to do 😉
All help is greatly appreciated!