[ follow-ups set to comp.programming ]
Quote:
> Anybody know where I can get (free, pd, or not much $$) the algorithm
> and db to calculate the geographic distance between two zipcodes?
Geodesic distance or road distance? in the later case you need a
road database along with the appropiate point-to-point distance
queries.
In the former case, you associate a geographical position
(latitude, longitude) to each zip code and calculate distances between
those positions using one of the standard formulae for that.
As to where to get that data, you might try writing to the USPS,
but be sure to know exactly what you need and, in general, what you're
talking about. People tend to be much more cooperative when they don't
feel you're wasting their time.
Regards,
Diego Berge.