This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to change embed map location easily on large scale

0

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's gravatar image

yojimbo45
11112
accept rate: 0%

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;

; out skel qt;

(11 Apr '21, 00:36) yojimbo45

One Answer:

0

answered 11 Apr '21, 01:57

yojimbo45's gravatar image

yojimbo45
11112
accept rate: 0%

Source code available on GitHub .