aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-10-27 17:02:07 +0500
committerAbyss777 <abyss@fox5.ru>2016-10-27 17:02:07 +0500
commit1d78b042b98a632c2e7cfc1e72cd69152cc4cbaf (patch)
tree0b95b0bbc4da38794e87e65627aff2f413625bdd /src/org/traccar/helper
parent793af111fd2cb86c9a9a31a4ff58b1217d727a7e (diff)
downloadtrackermap-server-1d78b042b98a632c2e7cfc1e72cd69152cc4cbaf.tar.gz
trackermap-server-1d78b042b98a632c2e7cfc1e72cd69152cc4cbaf.tar.bz2
trackermap-server-1d78b042b98a632c2e7cfc1e72cd69152cc4cbaf.zip
Export positions to GPX
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/UnitsConverter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/helper/UnitsConverter.java b/src/org/traccar/helper/UnitsConverter.java
index 4bc7348db..70916727e 100644
--- a/src/org/traccar/helper/UnitsConverter.java
+++ b/src/org/traccar/helper/UnitsConverter.java
@@ -45,6 +45,10 @@ public final class UnitsConverter {
return value * KNOTS_TO_MPS_RATIO;
}
+ public static double mpsFromKnots(double value) {
+ return value / KNOTS_TO_MPS_RATIO;
+ }
+
public static double knotsFromCps(double value) { // cm/s
return value * KNOTS_TO_CPS_RATIO;
}