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

overpass API Query for own installed server

0
1

Hi,

I am new to OSM and overpass API. Is it possible to get list of Mcdonalds in a particular area for example 1. List all Mcdonalds in paris 2. List all Mcdonalds in London etc.. I have setup my server with OSM and overpass api, how can make aquery to request the above ?

Help very much appriciated

asked 20 Apr '17, 11:55

mptkarthikeyan_82's gravatar image

mptkarthikey...
11223
accept rate: 0%


One Answer:

0

Here's an example Overpass API script for finding McDonald's in Paris, generated using the Overpass Turbo wizard:

http://overpass-turbo.eu/s/ou4

Here I've replaced the Overpass Turbo geocode function with a direct reference to the Paris area id, to make the query work directly against Overpass API:

http://overpass-turbo.eu/s/ou5

The id for the area is related to the id for the OSM object, as described here:

https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#By_element_id

answered 20 Apr '17, 15:45

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

Source code available on GitHub .