Zip Codes of nearest large city

I have all the zip codes of the cities I want, but now I need to find the zip codes of the nearest large city.

Any ideas?
rrhandle8Asked:
Who is Participating?
 
ecarboneConnect With a Mentor Commented:
I think you'll need to update your zip code database to also include the latitude and longitude of each city's "center".

There are a few online resources where you can download this data for free (such as www.geonames.org) and there are also some paid services. (Even APIs).

Once you have your database updated with this new information, write some code to calculate distances.

Here's a nice website that demonstrates various ways of calculating the distance between two lat/long points on the Earth, along with some accompanying JavaScript code. Well done.

http://www.movable-type.co.uk/scripts/latlong.html
0
 
Giovanni HewardCommented:
Do you have additional data, such as population or metro area codes?
0
 
rrhandle8Author Commented:
ecarbone, this looks interesting.  Will dive into it tomorrow.  Thanks for the lead.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.