Solved

Zip Codes of nearest large city

Posted on 2013-10-22
3
202 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 15

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
link access with Quickbooks 9 67
Does Microsoft Office 2016 support COM/ActiveX? 3 129
Where to obtain Oracle Data Provider for .NET 3.5 7 60
PL SQL Developer 7 75
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…

730 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