feat: Make search specific for cities and center around germany

This commit is contained in:
2025-06-10 21:04:55 +02:00
parent 9bba81be22
commit 3166faa7eb

View File

@@ -56,7 +56,8 @@
}
try {
const response = await fetch(`{{ geocoding_api_url }}/?q=${encodeURIComponent(query)}&limit=5&lang={{ LANGUAGE_CODE_CURRENT }}`);
// Search with preference to center of germany and only for cities
const response = await fetch(`{{ geocoding_api_url }}/?q=${encodeURIComponent(query)}&limit=5&lang={{ LANGUAGE_CODE_CURRENT }}&lat=51.95&lon=10.26&layer=city`);
const data = await response.json();
if (data && data.features) {