From 222216f1729bb6bbc40b7ca42fc2f0d1b7555dbd Mon Sep 17 00:00:00 2001 From: Jannik Date: Tue, 16 Sep 2025 18:18:59 +0200 Subject: [PATCH] fix: double slash in photon requests --- src/lib/services/Search.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }