Postgres version #1
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ public class CamelConfiguration extends RouteBuilder {
|
||||||
.process(exchange -> {
|
.process(exchange -> {
|
||||||
JsoCall jsoCall = exchange.getIn().getBody(JsoCall.class);
|
JsoCall jsoCall = exchange.getIn().getBody(JsoCall.class);
|
||||||
if (Point2D.distance(jsoCall.getPoint().getLat(), jsoCall.getPoint().getLng(), appProperties.myLat(), 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);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue