Search Postgresql Archives

Re: Finding points within 50 miles

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

 



Uwe C. Schroeder wrote:

in the where clause use something like (requires the earthdistance contrib to be installed):

geo_distance(point([origin longitude],[origin latitude]),point([target longitude column],[target latitude column])))::int <= 50
I don't suppose geo_distance really returns a number in miles, does it?


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

[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