100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
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.javaindex 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)