From 33efcf15f88ed88f05121c80d6e94b42bae3bc47 Mon Sep 17 00:00:00 2001 From: GeorgeL <46696710+george1459@users.noreply.github.com> Date: Sat, 6 May 2023 23:00:25 -0700 Subject: [PATCH] Revert "increase location threashold (#451)" This reverts commit af82312bb9417cbb3c84263063a6196ca00ab736. --- lib/runtime/primitive_ops.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/runtime/primitive_ops.ts b/lib/runtime/primitive_ops.ts index 71d68f88..ce210b7a 100644 --- a/lib/runtime/primitive_ops.ts +++ b/lib/runtime/primitive_ops.ts @@ -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 {