reversed longitude and latitude
This commit is contained in:
@@ -78,8 +78,8 @@ public class Routes {
|
|||||||
)
|
)
|
||||||
SELECT * FROM targets LEFT JOIN (SELECT post, positive as reaction FROM reactions WHERE userid = (?)) ON post = id;""");
|
SELECT * FROM targets LEFT JOIN (SELECT post, positive as reaction FROM reactions WHERE userid = (?)) ON post = id;""");
|
||||||
|
|
||||||
stmt.setObject(1, longitude);
|
stmt.setObject(1, latitude);
|
||||||
stmt.setObject(2, latitude);
|
stmt.setObject(2, longitude);
|
||||||
stmt.setObject(3, userID);
|
stmt.setObject(3, userID);
|
||||||
|
|
||||||
// query recursively for posts inside a 10km radius
|
// query recursively for posts inside a 10km radius
|
||||||
|
|||||||
Reference in New Issue
Block a user