Hello I have a query which works great for playgrounds that are points:

node["name"="Les Ulis"];
node
  (around:5000)
  ["leisure"="playground"];
out body;

But it does not work when the playgrounds are shape, like square. How could I do that? thank you

asked 03 Jul '15, 10:17

bodtx's gravatar image

bodtx
56226
accept rate: 0%

edited 03 Jul '15, 11:04

scai's gravatar image

scai ♦
31.4k18285439


Ok answer are in the ways :)

node["name"="Bures-sur-Yvette"];
(
way
  (around:5000)
  ["leisure"="playground"];
node
  (around:5000)
  ["leisure"="playground"];
  );
(._;>;);
out body;
permanent link

answered 03 Jul '15, 10:35

bodtx's gravatar image

bodtx
56226
accept rate: 0%

3

You might also want to include relations.

(03 Jul '15, 11:10) joost schouppe
3

Please note that your query does not behave like you think it does. node(around:5000)... in your case will find all nodes, which are up to 5000m away from all ways, which in turn are up to 5000m away from Bures-sur-Yvette. Obviously, this will return nodes, which are much further away from Bures-sur-Yvette than 5000m. To fix this, use the following: http://overpass-turbo.eu/s/afS

(04 Jul '15, 09:00) mmd
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:

×355
×155
×139
×118

question asked: 03 Jul '15, 10:17

question was seen: 2,157 times

last updated: 04 Jul '15, 09:00

powered by OSQA