Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5D43B475CCE; Thu, 12 Sep 2002 15:52:10 -0400 (EDT) Received: from mail.perdue.net (12-216-72-93.client.mchsi.com [12.216.72.93]) by postgresql.org (Postfix) with ESMTP id 81065475AE5; Thu, 12 Sep 2002 15:52:09 -0400 (EDT) Received: (from tperdue@localhost) by mail.perdue.net (8.11.2/8.11.2/Debian 8.11.2-1) id g8CJnv528039; Thu, 12 Sep 2002 14:49:57 -0500 Date: Thu, 12 Sep 2002 14:49:57 -0500 From: Tim Perdue To: Larry Rosenman Cc: pgsql-general@postgresql.org, pgsql-sql@postgresql.org Subject: Re: [SQL] Latitude / Longitude Message-ID: <20020912144957.F27651@mail.perdue.net> References: <20020912124426.A27570@mail.perdue.net> <1031852961.380.20.camel@lerlaptop.iadfw.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p7qwJlK53pWzbayA" Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <1031852961.380.20.camel@lerlaptop.iadfw.net>; from ler@lerctr.org on Thu, Sep 12, 2002 at 12:49:21PM -0500 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/509 X-Sequence-Number: 30090 --p7qwJlK53pWzbayA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 12, 2002 at 12:49:21PM -0500, Larry Rosenman wrote: > Look at contrib/earthdistance, I **think** it does what you need. Thanks, yeah this starts to get me into the realm of what I need. It still has to run every possible permutation to figure out which one is closest for each postalcode. What I'll do is run that once and build a 3rd table which = can be used to join the other two together using a view. Thanks, Tim --=20 Founder - PHPBuilder.com / Geocrawler.com / SourceForge GPG Public Key: http://www.perdue.net/personal/pgp.php --p7qwJlK53pWzbayA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9gO/lLxmgedYDVWQRAolQAJ4pocuHPOklUWtrZl8BqEP1ZFo7CQCfQuri Lb0SKDfOY93/bNGjll6wRzk= =51/Q -----END PGP SIGNATURE----- --p7qwJlK53pWzbayA--