NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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:

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

permanent link

answered 20 Apr '17, 15:45

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×362
×85

question asked: 20 Apr '17, 11:55

question was seen: 2,522 times

last updated: 20 Apr '17, 15:45

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum