I'm creating a zip code radius search. I have a general understand of how
this works, but am puzzled by how to get my final list of company locations.
I have setup two database tables: one with zip codes w/latitudes and
longitudes and the other with company names and addresses. The user enters
their zip code and the corresponding latitude and longitude is returned. I
then use this to return a list of zips, latitudes and longitudes within a
given radius of the original zip.
Using this list, how do I get my final list of company locations? I can loop
through the list one by one, but is there a more efficient way?
Thanks in advance!
this works, but am puzzled by how to get my final list of company locations.
I have setup two database tables: one with zip codes w/latitudes and
longitudes and the other with company names and addresses. The user enters
their zip code and the corresponding latitude and longitude is returned. I
then use this to return a list of zips, latitudes and longitudes within a
given radius of the original zip.
Using this list, how do I get my final list of company locations? I can loop
through the list one by one, but is there a more efficient way?
Thanks in advance!
Comment