I want to clustering locations use ST_ClusterWithin function:
geometry[] ST_ClusterWithin(geometry set g, float8 distance);
My table has column location of geography(Point,4326) type and I don't understand how to convert it correctly to geometry type with ability to specify distance in meters.
The following query can convert geography to geometry but allow to specify distance in degrees that is not acceptable for me:
select ST_AsText(unnest(ST_ClusterWithin(location::geometry, 0.0001)))
from places
So, how to use this function with geography data types?