Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fixed bug in AssetQueryPredicate and updated iOS with PushProvider

Michael Rademaker4092215e1f48
diff --git a/manager/src/main/java/org/openremote/manager/rules/AssetQueryPredicate.java b/manager/src/main/java/org/openremote/manager/rules/AssetQueryPredicate.java
index ed9fe7443..5b7825935 100644
--- a/manager/src/main/java/org/openremote/manager/rules/AssetQueryPredicate.java
+++ b/manager/src/main/java/org/openremote/manager/rules/AssetQueryPredicate.java
@@ -219,7 +219,7 @@ public class AssetQueryPredicate implements Predicate<AssetState> {
RadialLocationPredicate radialLocationPredicate = (RadialLocationPredicate) predicate;
GeodeticCalculator calculator = new GeodeticCalculator();
calculator.setStartingGeographicPoint(radialLocationPredicate.lng, radialLocationPredicate.lat);
- calculator.setDestinationGeographicPoint(coordinate.x, coordinate.y);
+ calculator.setDestinationGeographicPoint(coordinate.y, coordinate.x);
return calculator.getOrthodromicDistance() < radialLocationPredicate.radius;
} else if (predicate instanceof RectangularLocationPredicate) {
// Again this is a euclidean plane so doesn't work perfectly for WGS lat/lng - the bigger the rectangle to less accurate it is)