Hello,<div><br></div><div>I am developing an application to find whether two cars are in each other communication range or not.</div><div>I have two tables like receiver and transmitter. i would like to know if receiver is in 100 meters range of transmitter or not.</div>
<div>Since i am using PostgreSQL first time, i donno much about its functions and commands, but i have found that there is ST_Within(), which can be used for my work. I tried but it gives me lot of errors, probably because of data types of my latitude and longitude. they are in two different columns with datatype as double precision.</div>
<div><br></div><div>please tell me what is wrong, and how should i use ST_WITHIN for my work. Or tell me any other way of knowing if two objects are in range of each other.</div>