Commit 50df845e authored by Sharp Hall's avatar Sharp Hall

Tighten up stop distance threshold

parent 88fe1188
......@@ -11,6 +11,7 @@ import _ from 'lodash';
var COMING_ANGLE = 65;
var DISTANCE_THRESHOLD = 2;
var NEAR_THRESHOLD = 0.3;
var STOP_DISTANCE_THRESHOLD = 0.2;
var septaRoutes = {};
......@@ -51,7 +52,7 @@ var refreshDisplay = _.debounce(function () {
longitude: stop.x});
return stop;
}), function (stop) {
return stop.distance < 0.5;
return stop.distance < STOP_DISTANCE_THRESHOLD;
}
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment