Skip to content

Commit

Permalink
Revert "increase location threashold (#451)"
Browse files Browse the repository at this point in the history
This reverts commit af82312.
  • Loading branch information
george1459 committed May 7, 2023
1 parent 65d8397 commit 33efcf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/runtime/primitive_ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ function locationEquals(a : LocationLike, b : LocationLike) : boolean {
return true;
if (a.x === b.x && a.y === b.y)
return true;
//console.log('Comparing locations', [a,b]);
const d = distance(a, b);
// location distance by default is set to 10 km
// TODO: in the future, support the ability for developers to specify this number in manifest.tt
return d <= 10000;
//console.log('Distance (m): ' + d.toFixed(2));
return d <= 2500;
}

function hasValueOf(x : unknown) : x is number|string|Date|Time|StringLike {
Expand Down

0 comments on commit 33efcf1

Please sign in to comment.