Re: Search by longitude/latitude

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Search by longitude/latitude
Дата
Msg-id 00a701c1500e$9e34a8e0$6cdc10ac@jecw2k1
обсуждение исходный текст
Ответ на Search by longitude/latitude  ("Chris Ruprecht" <chrup999@yahoo.com>)
Список pgsql-sql
> 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
>

Here's a plpgsql function that will do what you need. You might also look at
the earthdistance code in contrib if you'd rather have a C function.

HTH,

Joe


В списке pgsql-sql по дате отправления:

Предыдущее
От: Haller Christoph
Дата:
Сообщение: Re: How to Return Unique Elements From An Array?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: temporary views