Reduce timeout for current position
This commit is contained in:
parent
93ed67630a
commit
dda63402a9
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ public class CurrentPositionHelper {
|
|||
if (loc == null || loc.getAccuracy() > 50) {
|
||||
return null;
|
||||
}
|
||||
if(last != null && last.distanceTo(loc) < 20) {
|
||||
if(last != null && last.distanceTo(loc) < 10) {
|
||||
return r;
|
||||
}
|
||||
if (r == null) {
|
||||
|
@ -65,7 +65,7 @@ public class CurrentPositionHelper {
|
|||
return null;
|
||||
}
|
||||
double d = getOrthogonalDistance(r, loc);
|
||||
if (d > 25) {
|
||||
if (d > 15) {
|
||||
scheduleRouteSegmentFind(loc, true, null, null);
|
||||
}
|
||||
if (d < 70) {
|
||||
|
|
Loading…
Reference in a new issue