aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/BasePipelineFactory.java6
-rw-r--r--src/org/traccar/GeolocationHandler.java3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index d949c9c9c..a0b42feeb 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -127,12 +127,14 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
if (Context.getGeocoder() != null) {
geocoderHandler = new GeocoderHandler(
- Context.getGeocoder(), Context.getConfig().getBoolean("geocoder.processInvalidPositions"));
+ Context.getGeocoder(),
+ Context.getConfig().getBoolean("geocoder.processInvalidPositions"));
}
if (Context.getGeolocationProvider() != null) {
geolocationHandler = new GeolocationHandler(
- Context.getGeolocationProvider(), Context.getConfig().getBoolean("location.processInvalidPositions"));
+ Context.getGeolocationProvider(),
+ Context.getConfig().getBoolean("location.processInvalidPositions"));
}
distanceHandler = new DistanceHandler();
diff --git a/src/org/traccar/GeolocationHandler.java b/src/org/traccar/GeolocationHandler.java
index 1e9bd6772..669c31654 100644
--- a/src/org/traccar/GeolocationHandler.java
+++ b/src/org/traccar/GeolocationHandler.java
@@ -47,7 +47,8 @@ public class GeolocationHandler implements ChannelUpstreamHandler {
final Position position = (Position) message;
if ((position.getOutdated() || processInvalidPositions && !position.getValid())
&& position.getNetwork() != null) {
- geolocationProvider.getLocation(position.getNetwork(), new GeolocationProvider.LocationProviderCallback() {
+ geolocationProvider.getLocation(position.getNetwork(),
+ new GeolocationProvider.LocationProviderCallback() {
@Override
public void onSuccess(double latitude, double longitude, double accuracy) {
position.set(Position.KEY_APPROXIMATE, true);