Web dev people: Looking for a software package that lets me calculate the distance between two given zipcodes.

yllus

Elite Member & Lifer
Aug 20, 2000
20,577
432
126
Has anyone bought/used a database package that includes zipcodes, plus the corresponding longitude/latitude values, that enable you to calculate the distance between people?

So far I'm looking at:

ZIPCodeWorld - Premium Edition
Zipwise Developer - Distribution License
Zip Code Database

Any free alternatives at all out there? I figured the USPS may have something, but they don't do bulk long/lat checks as far as I can tell. Thanks in advance.
 

Sphexi

Diamond Member
Feb 22, 2005
7,280
0
0
I think most online map generators have the ability to do this, unless you're not looking for driving distance, rather looking for straight line distance.
 

yllus

Elite Member & Lifer
Aug 20, 2000
20,577
432
126
Whoops, I left out the situation context. This is for a client's e-commerce website - I can't legitimately use those free tools to do the calculations needed.
 

hellman69

Member
Feb 15, 2003
180
0
71
distance = Sqr((69.1 * (from_long - to_long) * cos(to_lat/57.3) ^ 2 + (69.1 * (from_lat - to_lat)) ^ 2)

You can get most of the lat and long info from the census bureau website. You'll have to dig around for it, but it is there.

Trevor