From 8cf91cf854dc157efbf14917dc24879e346961ef Mon Sep 17 00:00:00 2001 From: Vic <88121568+vicariousdrama@users.noreply.github.com> Date: Tue, 14 Nov 2023 15:14:52 +0000 Subject: [PATCH] Improve geohash precision Change from 6 to 8 characters when geocoding lat/long for greater precision --- components/LocationSearch/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/LocationSearch/index.tsx b/components/LocationSearch/index.tsx index 4c8df1f..46f9e66 100644 --- a/components/LocationSearch/index.tsx +++ b/components/LocationSearch/index.tsx @@ -104,7 +104,7 @@ function CommandSearch({ location, onSelect }: CommandSearchProps) { }); if (!result[0]) return; const coordinates = getLatLng(result[0]); - const geohash = Geohash.encode(coordinates.lat, coordinates.lng, 6); + const geohash = Geohash.encode(coordinates.lat, coordinates.lng, 8); setOpen(false); return onSelect({ name,