diff --git a/src/main/java/com/bmwcarit/barefoot/matcher/MatcherServer.java b/src/main/java/com/bmwcarit/barefoot/matcher/MatcherServer.java index 1cebfb6b..71ce8048 100644 --- a/src/main/java/com/bmwcarit/barefoot/matcher/MatcherServer.java +++ b/src/main/java/com/bmwcarit/barefoot/matcher/MatcherServer.java @@ -256,7 +256,7 @@ public MatcherResponseFactory(Properties properties, RoadMap map, InputFormatter matcher.setSigma(Double.parseDouble( properties.getProperty("matcher.sigma", Double.toString(matcher.getSigma())))); interval = Integer.parseInt(properties.getProperty("matcher.interval.min", "1000")); - distance = Integer.parseInt(properties.getProperty("matcher.distance.min", "0")); + distance = Double.parseDouble(properties.getProperty("matcher.distance.min", Double.toString(0d))); int matcherThreads = Integer.parseInt(properties.getProperty("matcher.threads", Integer.toString(Runtime.getRuntime().availableProcessors()))); diff --git a/src/main/java/com/bmwcarit/barefoot/tracker/TrackerServer.java b/src/main/java/com/bmwcarit/barefoot/tracker/TrackerServer.java index 8a34e3cc..b967448f 100644 --- a/src/main/java/com/bmwcarit/barefoot/tracker/TrackerServer.java +++ b/src/main/java/com/bmwcarit/barefoot/tracker/TrackerServer.java @@ -117,7 +117,7 @@ public MatcherResponseFactory(Properties properties, RoadMap map) { matcher.setSigma(Double.parseDouble( properties.getProperty("matcher.sigma", Double.toString(matcher.getSigma())))); interval = Integer.parseInt(properties.getProperty("matcher.interval.min", "1000")); - distance = Integer.parseInt(properties.getProperty("matcher.distance.min", "0")); + distance = Double.parseDouble(properties.getProperty("matcher.distance.min", Double.toString(0d))); sensitive = Double.parseDouble( properties.getProperty("tracker.monitor.sensitive", Double.toString(0d))); TTL = Integer.parseInt(properties.getProperty("tracker.state.ttl", "60"));