diff options
author | Abyss777 <abyss@fox5.ru> | 2016-10-27 17:02:07 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-10-27 17:02:07 +0500 |
commit | 1d78b042b98a632c2e7cfc1e72cd69152cc4cbaf (patch) | |
tree | 0b95b0bbc4da38794e87e65627aff2f413625bdd /src/org/traccar/helper/UnitsConverter.java | |
parent | 793af111fd2cb86c9a9a31a4ff58b1217d727a7e (diff) | |
download | trackermap-server-1d78b042b98a632c2e7cfc1e72cd69152cc4cbaf.tar.gz trackermap-server-1d78b042b98a632c2e7cfc1e72cd69152cc4cbaf.tar.bz2 trackermap-server-1d78b042b98a632c2e7cfc1e72cd69152cc4cbaf.zip |
Export positions to GPX
Diffstat (limited to 'src/org/traccar/helper/UnitsConverter.java')
-rw-r--r-- | src/org/traccar/helper/UnitsConverter.java | 4 |
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; } |