Solved

Zip Codes of nearest large city

Posted on 2013-10-22
3
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

688 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