searching location
This commit is contained in:
parent
06285fc533
commit
3c38abfd6a
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue