[out:csv(::type, ::id, name, admin_level, parent_id)];

rel(295480)->.c;
.c map_to_area;
rel(area)[admin_level=4];

foreach(
  convert rel ::id = id(), ::=::, parent_id=set(id()); // save as parent_id
  // how to now get each set of children of the admin_level bellow?.
  out;  
);

// the goal is to have:
// child 1 ... parent 1
// child 2 ... parent 1
// child 3 ... parent 1
// child 1 ... parent 2
// child 2 ... parent 2
// ...

asked 30 Jul '18, 19:49

andrefrsilva's gravatar image

andrefrsilva
11335
accept rate: 0%

Be the first one to answer this question!
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:

×414
×164

question asked: 30 Jul '18, 19:49

question was seen: 613 times

last updated: 30 Jul '18, 19:49

powered by OSQA