diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-26 10:02:37 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-26 10:02:37 -0700 |
commit | d3e34416e9825833fa1db02112c56981999df039 (patch) | |
tree | d21b4414b532bfc53c9a905f3caa09f70b43b59e /src/org/traccar/location | |
parent | ac2405f0d57fac51fe95aa755f90fe82f26f73bc (diff) | |
parent | aa12e5c750e771016545269ffa39409b06b47eee (diff) | |
download | trackermap-server-d3e34416e9825833fa1db02112c56981999df039.tar.gz trackermap-server-d3e34416e9825833fa1db02112c56981999df039.tar.bz2 trackermap-server-d3e34416e9825833fa1db02112c56981999df039.zip |
Merge pull request #1978 from Abyss777/master
Simplification of the models hierarchy
Diffstat (limited to 'src/org/traccar/location')
-rw-r--r-- | src/org/traccar/location/BaseLocationProvider.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/location/BaseLocationProvider.java b/src/org/traccar/location/BaseLocationProvider.java index c422ed50a..7778cc0c5 100644 --- a/src/org/traccar/location/BaseLocationProvider.java +++ b/src/org/traccar/location/BaseLocationProvider.java @@ -17,7 +17,7 @@ package org.traccar.location; import org.traccar.Config; import org.traccar.Context; -import org.traccar.model.Event; +import org.traccar.model.Position; import java.util.Map; @@ -28,18 +28,18 @@ public abstract class BaseLocationProvider implements LocationProvider { Config config = Context.getConfig(); - Number mcc = (Number) attributes.get(Event.KEY_MCC); + Number mcc = (Number) attributes.get(Position.KEY_MCC); if (mcc == null && config.hasKey("location.mcc")) { mcc = config.getInteger("location.mcc"); } - Number mnc = (Number) attributes.get(Event.KEY_MNC); + Number mnc = (Number) attributes.get(Position.KEY_MNC); if (mnc == null && config.hasKey("location.mnc")) { mnc = config.getInteger("location.mnc"); } - Number lac = (Number) attributes.get(Event.KEY_LAC); - Number cid = (Number) attributes.get(Event.KEY_CID); + Number lac = (Number) attributes.get(Position.KEY_LAC); + Number cid = (Number) attributes.get(Position.KEY_CID); if (mcc != null && mnc != null && lac != null && cid != null) { getLocation(mcc.intValue(), mnc.intValue(), lac.longValue(), cid.longValue(), callback); |