mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-10-05 15:07:22 +02:00
fix search, clean up logging
This commit is contained in:
1 parent
fb2f1c397a
commit
837e1b7322
3 files changed
+40
-34
No files matched your search
@@ -60,7 +60,6 @@ export const geocodeQuery = async (query: string, currentLocation: any) => {
|
||||
const results = (await apiService.get(`/geocode?query=${encodedQuery}`)).data;
|
||||
|
||||
function findNearestResult(results: any, currentLocation: any) {
|
||||
console.log(currentLocation, results);
|
||||
let nearestResult = results[0];
|
||||
let nearestDistance = Number.MAX_VALUE;
|
||||
for (const result of results) {
|
||||
|
||||
Reference in new issue
Block a user