From: | "James Orr" <james(at)lrgmail(dot)com> |
---|---|
To: | "Chris Ruprecht" <chrup999(at)yahoo(dot)com>, "pgsql" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Search by longitude/latitude |
Date: | 2001-10-08 13:42:02 |
Message-ID: | 002701c14fff$03a22fa0$1600000a@lrg.office |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Here is some perl code which does what you want.
----- Original Message -----
From: "Chris Ruprecht" <chrup999(at)yahoo(dot)com>
To: "pgsql" <pgsql-sql(at)postgresql(dot)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(at)postgresql(dot)org
>
Attachment | Content-Type | Size |
---|---|---|
distance | application/octet-stream | 1.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Colin 't Hart | 2001-10-08 14:13:45 | Re: Search by longitude/latitude |
Previous Message | Chris Ruprecht | 2001-10-08 12:58:07 | Search by longitude/latitude |