Calculate Distance
I wrote a program tonight that calculates the distance between two zip codes (or two cities). It uses the latitude, longitude, and the radius of the Earth (and a few other numbers) to determine the distance around this giant sphere that we live on.
It’s not driving distance but it gives a good enough calculation of distance between several points. For instance, if you needed to know where the closest DMV was located, zip code would be sufficient.
Posted: May 8th, 2005 under programming.
Comments: 2
Comments
Comment from SuperDave
Time: February 22, 2006, 10:36 am
Where did you get your ZipCode info? I had used the old 1990 census information before but in 2000 they switched from Zip to ZCTA’s
http://www.census.gov/geo/www/gazetteer/places2k.html
Comment from Eric
Time: February 22, 2006, 10:38 am
I bought a database with the information in it. Probably something that someone built off of the Census data. You can also hit up free sites like geocoder.us for information.

Write a comment