diff --git a/src/lib/services/Search.ts b/src/lib/services/Search.ts index 4875dd9..3810b7c 100644 --- a/src/lib/services/Search.ts +++ b/src/lib/services/Search.ts @@ -28,14 +28,14 @@ export async function searchPlaces( lon: number, ): Promise { const res = await fetch( - SEARCH_SERVER + "/api/?q=" + query + "&lat=" + lat + "&lon=" + lon, + SEARCH_SERVER + "api/?q=" + query + "&lat=" + lat + "&lon=" + lon, ).then((res) => res.json()); return res.features; } export async function reverseGeocode(coord: WorldLocation): Promise { const res = await fetch( - SEARCH_SERVER + "/reverse?lat=" + coord.lat + "&lon=" + coord.lon, + SEARCH_SERVER + "reverse?lat=" + coord.lat + "&lon=" + coord.lon, ).then((res) => res.json()); return res.features; }