Re: Search by distance

From: Jeffrey Melloy <jmelloy(at)visualdistortion(dot)org>
To: Oscar Picasso <oscgoogle(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Search by distance
Date: 2006-04-10 21:39:58
Message-ID: 443AD0AE.7080603@visualdistortion.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oscar Picasso wrote:

> HI,
>
> I would like to implement a search by distance to my application.
>
> Something like (pseudo sql):
>
> select * from users
> where users.location is less than 15 miles from chicago.
>
> Any documentation on how to implements that?
>
> I guess I also need a database of the cities coordinates. Where could
> I find one?
>
> Thanks
>
> Oscar
>
> ------------------------------------------------------------------------

I can't help you with the coordinates, but this is exactly what the
contrib package PostGIS is designed for.

Jeff

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tyler MacDonald 2006-04-10 21:58:50 Re: Debian package for freeradius_postgresql module
Previous Message Bruce Momjian 2006-04-10 21:34:57 Re: PostgreSQL's XML support comparison against other RDBMSes