searching location

This commit is contained in:
Bayu Lukman Yusuf 2026-03-02 10:46:38 +07:00
parent 06285fc533
commit 3c38abfd6a
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@
// Using Nominatim API for geocoding // Using Nominatim API for geocoding
fetch( fetch(
`https://nominatim.openstreetmap.org/search?format=json&q=${encodeURIComponent(query)}&limit=5`) `https://nominatim.openstreetmap.org/search?format=json&q=${encodeURIComponent(query)}&limit=5&viewbox=95,-11,141,6&bounded=1&namedetails=1&addressdetails=1`)
.then(response => { .then(response => {
console.log('Search response received:', response.status); console.log('Search response received:', response.status);
return response.json(); return response.json();