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, 11:55

mptkarthikeyan_82's gravatar image

mptkarthikey...
1123
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, 15:45

maxerickson's gravatar image

maxerickson
6.6k74796
accept rate: 29%

Your answer
toggle preview

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:

×208
×45

question asked: 20 Apr, 11:55

question was seen: 268 times

last updated: 20 Apr, 15:45

powered by OSQA