Distances

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Rezznor
Forum Newbie
Posts: 2
Joined: Fri Sep 09, 2005 9:48 pm

Distances

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Zip codes are stored in latitude and logititude coordinates. You can use that math space to find the distance between two locations.
Rezznor
Forum Newbie
Posts: 2
Joined: Fri Sep 09, 2005 9:48 pm

distances

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

page two had a thread.. viewtopic.php?t=37368
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply