You could check the USPS website for a zip code index to give you the
locations and then maybe Rand-McNally to get the mileage estimates between
the cities that the zip codes apply to. As far as a single point of
reference. Nope, I don't know of one. But somebody probably has one
somewhere.
There are lists of zip code, town, long/lat data. As long as you can get
from zip code to long/lat, you can use trig to calculate the straight line
distance, assuming you can approximate to a flat surface, although slightly
more work will allow for the curvature of the Earth.
This list looks pretty comprehensive: http://www.cfdynamics.com/cfdynamics/zipbase/index.cfm
and sample code http://www.zipcodeworld.com/samples/distance.vbs.txt
Also, accuracy may not be that high, as zipcodes are areas, but you would
have to assume a single point for calculation. There a discussion of some
salient points here: http://www.webmasterworld.com/forum10/6530.htm
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.