Solved

Zip Codes of nearest large city

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is Runtime?  What is Middleware?  Azure stack 1 433
Problem to packaging 1 98
Which Microsoft MSDN Package Is The One I need? 3 48
C# LINQ ForEach() question 6 54
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 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