From: James Orr <james@lrgmail.com>
To: Chris Ruprecht <chrup999@yahoo.com>
To: pgsql <pgsql-sql@postgresql.org>
Subject: Re: Search by longitude/latitude
Date: Mon, 8 Oct 2001 09:42:02 -0400
Message-ID: <002701c14fff$03a22fa0$1600000a@lrg.office> (raw)
References: <001a01c14ff8$e0a3cf00$5dd26383@corp.compucom.com>
Here is some perl code which does what you want.
----- Original Message -----
From: "Chris Ruprecht" <chrup999@yahoo.com>
To: "pgsql" <pgsql-sql@postgresql.org>
Sent: Monday, October 08, 2001 8:58 AM
Subject: [SQL] Search by longitude/latitude
> Hi all,
>
> I need to implement "Find all hospitals in a 5 mile radius". Say I have
all
> the coordinates on them stored in a table with the fields longitude and
> latitude. Has anybody some sample code for that?
>
> Best regards,
> Chris
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
Attachments:
distance (application/octet-stream, 1.2K) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: james@lrgmail.com, chrup999@yahoo.com
Subject: Re: Search by longitude/latitude
In-Reply-To: <002701c14fff$03a22fa0$1600000a@lrg.office>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox