I need to calculate if one point is not more distant than a given radius from another point. I used the function ST_DWithin
, in google maps I get lanLot using "what is here" section of two points. First: (43.2137617, 76.8598076)
and second (43.220109 76.865100)
. The distance between them is 1.25km. My query
SELECT ST_DWithin (
ST_GeomFromText('POINT(76.8598076 43.2137617)',3857),
ST_GeomFromText('POINT(76.865100 43.220109)',3857),
100
);
And it always returns true. I think that I put radius 100 meters and used SRID 3875 to use meters. What is wrong?