Page 1 of 1

Distances

Posted: Fri Sep 09, 2005 9:49 pm
by Rezznor
I always wondered how distances in zip codes are figured out. I program primarily in PHP and was wondering if this is a PHP thing or some other language I am unfamiliar with. Or something else entirely.

Posted: Fri Sep 09, 2005 9:58 pm
by feyd
Zip codes are stored in latitude and logititude coordinates. You can use that math space to find the distance between two locations.

distances

Posted: Mon Sep 12, 2005 11:44 pm
by Rezznor
What, like triangulation or some such like that? I think I read about that somewhere, but I was wondering about accuracy as well. The earth's curved surface could cause some accuracy issues, eh?

But other than that, where would I acquire the lat and log o' each zip code? Is there a massive database I can pull the info from? Some place I can download the information?

Posted: Tue Sep 13, 2005 12:39 am
by feyd
page two had a thread.. viewtopic.php?t=37368

Posted: Tue Sep 13, 2005 2:44 am
by s.dot
if you're looking for a us database, google for it and you'll find plenty of them if you search good enough. most of them will give you city, state, county, lat, long, and other misc information.