Solved

Zip Codes of nearest large city

Posted on 2013-10-22
3
192 Views
Last Modified: 2014-03-31
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?
0
Comment
Question by:rrhandle8
3 Comments
 
LVL 14

Expert Comment

by:Giovanni Heward
ID: 39592617
Do you have additional data, such as population or metro area codes?
0
 
LVL 10

Accepted Solution

by:
ecarbone earned 500 total points
ID: 39593002
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
 

Author Comment

by:rrhandle8
ID: 39593021
ecarbone, this looks interesting.  Will dive into it tomorrow.  Thanks for the lead.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now