Improve geohash precision

Change from 6 to 8 characters when geocoding lat/long for greater precision
This commit is contained in:
Vic 2023-11-14 15:14:52 +00:00 committed by GitHub
parent 2380b9ad51
commit 8cf91cf854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ function CommandSearch({ location, onSelect }: CommandSearchProps) {
}); });
if (!result[0]) return; if (!result[0]) return;
const coordinates = getLatLng(result[0]); 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); setOpen(false);
return onSelect({ return onSelect({
name, name,