I can not find a lot of documentation about this. The easiest way to create a database / table for postgres supporting a query such as this table SELECT * FROM WHERE distance (POINT (0,0), table.location) <= 1000m; Where POINT (0,0) and table.location should be a pair of latitude / longitude, and 1000 m - 1000 meters. And how should I index this table? Thank.
source
share