Search Postgresql Archives

Re: Search by distance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux