aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geofence/GeofenceGeometry.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-27 16:01:24 +0700
committerAbyss777 <abyss@fox5.ru>2016-11-27 16:01:24 +0700
commitf933147c0cba53df96448a64a2ba58dda4da1659 (patch)
tree4103302744f4ff1cfc5c3ff207aa68b516d7ee8c /src/org/traccar/geofence/GeofenceGeometry.java
parent5ea4572553a84126b7e9f06c822e1a183413a558 (diff)
downloadtrackermap-server-f933147c0cba53df96448a64a2ba58dda4da1659.tar.gz
trackermap-server-f933147c0cba53df96448a64a2ba58dda4da1659.tar.bz2
trackermap-server-f933147c0cba53df96448a64a2ba58dda4da1659.zip
- Remove try-catch frome tests
- Fixed longitude normalizing for geofences near 180 longitude - Added more tests - Other fixes
Diffstat (limited to 'src/org/traccar/geofence/GeofenceGeometry.java')
-rw-r--r--src/org/traccar/geofence/GeofenceGeometry.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/org/traccar/geofence/GeofenceGeometry.java b/src/org/traccar/geofence/GeofenceGeometry.java
index d61e357ce..857ba3414 100644
--- a/src/org/traccar/geofence/GeofenceGeometry.java
+++ b/src/org/traccar/geofence/GeofenceGeometry.java
@@ -27,8 +27,6 @@ public abstract class GeofenceGeometry {
public static class Coordinate {
- public static final double DEGREE360 = 360;
-
private double lat;
private double lon;
@@ -44,11 +42,6 @@ public abstract class GeofenceGeometry {
return lon;
}
- // Need not to confuse algorithm by the abrupt reset of longitude
- public double getLon360() {
- return lon + DEGREE360;
- }
-
public void setLon(double lon) {
this.lon = lon;
}