aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/DistanceCalculator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/DistanceCalculator.java')
-rw-r--r--src/org/traccar/helper/DistanceCalculator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/helper/DistanceCalculator.java b/src/org/traccar/helper/DistanceCalculator.java
index 873e84977..88d4ef8a4 100644
--- a/src/org/traccar/helper/DistanceCalculator.java
+++ b/src/org/traccar/helper/DistanceCalculator.java
@@ -34,7 +34,7 @@ public final class DistanceCalculator {
return d * 1000;
}
- public static double distanceToInterval(
+ public static double distanceToLine(
double pointLat, double pointLon, double lat1, double lon1, double lat2, double lon2) {
double d0 = distance(pointLat, pointLon, lat1, lon1);
double d1 = distance(lat1, lon1, lat2, lon2);