Improve geohash precision
Change from 6 to 8 characters when geocoding lat/long for greater precision
This commit is contained in:
parent
2380b9ad51
commit
8cf91cf854
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user