diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:34:22 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:34:22 +1300 |
commit | e8cd15c0fb192f635808adfde4e8614e6b4b3c3f (patch) | |
tree | 74a41d42c37d9a6b4756c6bddb90ec43c75ffd5b /src/org/traccar/LocationProviderHandler.java | |
parent | d13f618ee3b8463d063b7f67e039299560245597 (diff) | |
download | trackermap-server-e8cd15c0fb192f635808adfde4e8614e6b4b3c3f.tar.gz trackermap-server-e8cd15c0fb192f635808adfde4e8614e6b4b3c3f.tar.bz2 trackermap-server-e8cd15c0fb192f635808adfde4e8614e6b4b3c3f.zip |
Rename Location to Geolocation
Diffstat (limited to 'src/org/traccar/LocationProviderHandler.java')
-rw-r--r-- | src/org/traccar/LocationProviderHandler.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/LocationProviderHandler.java b/src/org/traccar/LocationProviderHandler.java index ca3094ac2..bf37a8b88 100644 --- a/src/org/traccar/LocationProviderHandler.java +++ b/src/org/traccar/LocationProviderHandler.java @@ -21,16 +21,16 @@ import org.jboss.netty.channel.ChannelUpstreamHandler; import org.jboss.netty.channel.Channels; import org.jboss.netty.channel.MessageEvent; import org.traccar.helper.Log; -import org.traccar.location.LocationProvider; +import org.traccar.geolocation.GeolocationProvider; import org.traccar.model.Position; public class LocationProviderHandler implements ChannelUpstreamHandler { - private final LocationProvider locationProvider; + private final GeolocationProvider geolocationProvider; private final boolean processInvalidPositions; - public LocationProviderHandler(LocationProvider locationProvider, boolean processInvalidPositions) { - this.locationProvider = locationProvider; + public LocationProviderHandler(GeolocationProvider geolocationProvider, boolean processInvalidPositions) { + this.geolocationProvider = geolocationProvider; this.processInvalidPositions = processInvalidPositions; } @@ -47,7 +47,7 @@ public class LocationProviderHandler implements ChannelUpstreamHandler { final Position position = (Position) message; if ((position.getOutdated() || processInvalidPositions && !position.getValid()) && position.getNetwork() != null) { - locationProvider.getLocation(position.getNetwork(), new LocationProvider.LocationProviderCallback() { + geolocationProvider.getLocation(position.getNetwork(), new GeolocationProvider.LocationProviderCallback() { @Override public void onSuccess(double latitude, double longitude, double accuracy) { position.set(Position.KEY_APPROXIMATE, true); |