Postgres version #1

Merged
c4181 merged 17 commits from postgres-version into main 2025-11-19 17:38:10 +00:00
Showing only changes of commit 3e8b0bcf56 - Show all commits

View file

@ -68,7 +68,7 @@ public class CamelConfiguration extends RouteBuilder {
.filter(exchange -> exchange.getIn().getBody(JsoCall.class).getPoint() != null) .filter(exchange -> exchange.getIn().getBody(JsoCall.class).getPoint() != null)
.process(exchange -> { .process(exchange -> {
JsoCall jsoCall = exchange.getIn().getBody(JsoCall.class); JsoCall jsoCall = exchange.getIn().getBody(JsoCall.class);
if (Point2D.distance(jsoCall.getPoint().getLat(), appProperties.myLat(), jsoCall.getPoint().getLng(), appProperties.myLong()) if (Point2D.distance(jsoCall.getPoint().getLat(), jsoCall.getPoint().getLng(), appProperties.myLat(), appProperties.myLong())
>= appProperties.telegramNotificationThreshold()) { >= appProperties.telegramNotificationThreshold()) {
exchange.setRouteStop(true); exchange.setRouteStop(true);
} }