diff --git a/web/src/lib/stores/search_store.ts b/web/src/lib/stores/search_store.ts index cb067ed1..78ce7857 100644 --- a/web/src/lib/stores/search_store.ts +++ b/web/src/lib/stores/search_store.ts @@ -131,6 +131,9 @@ export async function searchLocationReverse(lat: number, lon: number) { const nominatimURL = env.PUBLIC_NOMINATIM_URL ?? "https://nominatim.openstreetmap.org" const r = await fetch(`${nominatimURL}/reverse?lat=${lat}&lon=${lon}&format=geojson&addressdetails=1`, { method: "GET", + headers: new Headers({ + "User-Agent": "wanderer/" + version + }) }); if (!r.ok) { const response = await r.json(); @@ -212,4 +215,4 @@ export async function searchActors(q: string, includeSelf: boolean = true): Prom return [] } -} \ No newline at end of file +}