reversed longitude and latitude

This commit is contained in:
2024-06-13 14:55:28 +02:00
parent 9fd843da78
commit 57418213f5

View File

@@ -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