Hi, I need for my website to embed a map for different cities and show local mosques. I found the query which is this: http://overpass-turbo.eu/s/15Xv The problem I got 500 different cities and I can't embed them manually. Is it possible to have an URL where I just change the latitude and longitude to change location ? That way I can automate this on my side Thanks ! asked 10 Apr '21, 05:46 yojimbo45 |
finally found this https://gist.github.com/tyrasd/45e4a6a44c734497e82ccaae16a9c9ea answered 11 Apr '21, 01:57 yojimbo45 |
hi, i'm not familiar with api. how i can use this request and send it with URL API and receive the json data so I can add the places on the map
/ This has been generated by the overpass-turbo wizard. The original search was: “"place of worship" and muslim or mosque or minaret ” / [out:json][timeout:25]; // gather results ( // query part for: “"place of worship" and muslim” node["amenity"="place_of_worship"]["amenity"="place_of_worship"]"religion"="muslim"; way["amenity"="place_of_worship"]["amenity"="place_of_worship"]"religion"="muslim"; relation["amenity"="place_of_worship"]["amenity"="place_of_worship"]"religion"="muslim"; // query part for: “mosque” node["man_made"="tower"]"tower:type"="mosque"; way["man_made"="tower"]"tower:type"="mosque"; relation["man_made"="tower"]"tower:type"="mosque"; // query part for: “minaret” node["man_made"="tower"]"tower:type"="minaret"; way["man_made"="tower"]"tower:type"="minaret"; relation["man_made"="tower"]"tower:type"="minaret"; ); // print results out body;