Merge pull request #3 from vicariousdrama/geohash-precision
Improve geohash precision
This commit is contained in:
commit
ec469fcba1
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user