Skip to content

Commit

Permalink
increase location threashold (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
george1459 committed Feb 22, 2023
1 parent 5ee0ba8 commit af82312
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);
//console.log('Distance (m): ' + d.toFixed(2));
return d <= 2500;
// 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;
}

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

0 comments on commit af82312

Please sign in to comment.