From 283c030b37f7ba682a66de365674c003662505d7 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Wed, 26 Jul 2023 12:52:24 +0800 Subject: [PATCH] Fixed homepage distance bug --- src/routes/Home/Home.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/Home/Home.tsx b/src/routes/Home/Home.tsx index 7f146cd..bbe1b6e 100644 --- a/src/routes/Home/Home.tsx +++ b/src/routes/Home/Home.tsx @@ -19,8 +19,8 @@ export default function Home() { const ustpCoords = { latitude: 8.4857, longitude: 124.6565, - latitudeDelta: 0.4, - longitudeDelta: 0.4, + latitudeDelta: 0.000235, + longitudeDelta: 0.000067, }; async function requestLocation() { const { status } = await Location.requestForegroundPermissionsAsync(); @@ -62,8 +62,8 @@ export default function Home() { let dist = GetDistance( location.coords.latitude, location.coords.longitude, - 0.4, - 0.4 + 8.4857, // LatitudeDelta + 124.6565 // LongitudeDelta ); setDist(Math.round(dist)); }