Merge pull request #3 from vicariousdrama/geohash-precision

Improve geohash precision
This commit is contained in:
zmeyer44 2023-11-14 10:37:04 -05:00 committed by GitHub
commit ec469fcba1
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;
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,