diff options
author | Anton Tananaev <atananaev@lyft.com> | 2020-12-28 11:06:25 -0800 |
---|---|---|
committer | Anton Tananaev <atananaev@lyft.com> | 2020-12-28 11:06:25 -0800 |
commit | f54ec00be2611c274e442cd6b2fd5ccdcf433ae5 (patch) | |
tree | 5387cd15a36187d6a739aae47ddd51e4721c8a2a /src/main/java/org/traccar/model/Geofence.java | |
parent | 04cd9f4d14111b6d568a8ddd7e5501873276b339 (diff) | |
download | trackermap-server-f54ec00be2611c274e442cd6b2fd5ccdcf433ae5.tar.gz trackermap-server-f54ec00be2611c274e442cd6b2fd5ccdcf433ae5.tar.bz2 trackermap-server-f54ec00be2611c274e442cd6b2fd5ccdcf433ae5.zip |
Migrate more config keys
Diffstat (limited to 'src/main/java/org/traccar/model/Geofence.java')
-rw-r--r-- | src/main/java/org/traccar/model/Geofence.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/model/Geofence.java b/src/main/java/org/traccar/model/Geofence.java index 8560d22e9..835ea7c22 100644 --- a/src/main/java/org/traccar/model/Geofence.java +++ b/src/main/java/org/traccar/model/Geofence.java @@ -18,6 +18,7 @@ package org.traccar.model; import java.text.ParseException; import org.traccar.Context; +import org.traccar.config.Keys; import org.traccar.database.QueryIgnore; import org.traccar.geofence.GeofenceCircle; import org.traccar.geofence.GeofenceGeometry; @@ -67,7 +68,7 @@ public class Geofence extends ScheduledModel { } else if (area.startsWith("LINESTRING")) { final double distance = getDouble("polylineDistance"); geometry = new GeofencePolyline(area, distance > 0 ? distance - : Context.getConfig().getDouble("geofence.polylineDistance", 25)); + : Context.getConfig().getDouble(Keys.GEOFENCE_POLYLINE_DISTANCE, 25)); } else { throw new ParseException("Unknown geometry type", 0); } |