Re: Postal code radius searches

From: "Roderick A(dot) Anderson" <raanders(at)tincan(dot)org>
To: Milo Hyson <milo(at)cyberlifelabs(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postal code radius searches
Date: 2002-02-06 19:35:12
Message-ID: Pine.LNX.4.10.10202061132150.26728-100000@tincan.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 6 Feb 2002, Milo Hyson wrote:

> I've been struggling with this problem for a while now and I can't seem to
> find a solution. I have a postal-code database, currently populated with over
> 76,000 United States ZIP codes. Each record contains, among other things, the
> latitude and longitude for the postal code. I have a stored procedure that
> calculates the distance between any two points on the globe. I'm trying to
> figure out a fast way to locate all of the postal codes within an arbitrary
> radius of another postal code.

Have you looked at PostGIS? I'm a couple of revisions behind but I seem
to remember something about distances from points etc. The down side is
it is only good on PG 7.1.3 and an upgrade to 7.2 won't be happening for
awhile as the developers are off making money (working) right now.

Best,
Rod
--
Let Accuracy Triumph Over Victory

Zetetic Institute
"David's Sling"
Marc Stiegler

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vince Vielhaber 2002-02-06 19:37:30 Re: Postal code radius searches
Previous Message Elaine Lindelef 2002-02-06 19:32:55 Re: Postal code radius searches