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


I have sent this query to get relations. The server response give me the relations but not the nodes used in this relation.

My query is :[type=enforcement][bbox=-5.9,42.3,9,51]

I want with the relations, the node associated with this relations, not all the node !

what can I add to my query as to have the nodes description ? Where is my mistake ?

Best Regards Michel

asked 12 May '12, 08:16

michel60's gravatar image

accept rate: 0%

It's not really clear what you want, maybe you can ask the question in your own language.

I believe the response I got from that was relevant to the query. (All relations within bbox of type enforcement). I got the nodes related to the relations.

(12 May '12, 09:18) TheOddOne2

To get the relations only, the query[type=enforcement][bbox=-5.9,42.3,9,51]

is fine. If you want something else, you should use Overpass QL to formulate what you want exactly.

Relations only (again):[type=enforcement](42.3,-5.9,51,9);out;

Relations and only nodes that are members:[type=enforcement](42.3,-5.9,51,9);node(r););out;

Relations and the node and way members and the nodes belonging to the way members[type=enforcement](42.3,-5.9,51,9);>;);out;

Or if you want to process the data with JOSM or Osmosis, you need meta data. Replace out; by out meta;[type=enforcement](42.3,-5.9,51,9);>;);out meta;

In case your browser has difficulties with spaces in URL:[type=enforcement](42.3,-5.9,51,9);>;);out+meta;

Caution: these queries may take some minutes.

permanent link

answered 12 May '12, 11:46

Roland%20Olbricht's gravatar image

Roland Olbricht
accept rate: 36%

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 12 May '12, 08:16

question was seen: 5,308 times

last updated: 12 May '12, 11:46

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