kopia lustrzana https://github.com/openstreetmap-polska/aed-mapa
limited geocoder search results to poland
rodzic
5efd38a933
commit
bf5479d0b0
|
@ -109,7 +109,7 @@ var geocoder_api = {
|
|||
let request =
|
||||
'https://nominatim.openstreetmap.org/search?q=' +
|
||||
config.query +
|
||||
'&format=geojson&polygon_geojson=1&addressdetails=1';
|
||||
'&countrycodes=pl&format=geojson&polygon_geojson=1&addressdetails=1';
|
||||
const response = await fetch(request);
|
||||
const geojson = await response.json();
|
||||
for (let feature of geojson.features) {
|
||||
|
|
Ładowanie…
Reference in New Issue