mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-07-09 05:47:58 +02:00
fix search, clean up logging
This commit is contained in:
@@ -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