I want to make 1 query which would look over multiple BBoxes. How would I achieve this?

My current code is:

[out:json];

way[highway][highway~"(primary|secondary|tertiary|unclassified)"](50.89377370152463,-2.5791936347428144,50.93869042414434,-2.488528471457792);node(w);

out center;

asked 24 Jan, 20:07

Ogisha's gravatar image

Ogisha
11112
accept rate: 0%

edited 25 Jan, 07:23

scai's gravatar image

scai ♦
33.2k21308458


Hello.

The union operator () will help.

This is an example with two bounding boxes.

Side note, if you want the ways as well as the nodes, you need to nest unions, like here.

permanent link

answered 27 Jan, 10:11

H_mlet's gravatar image

H_mlet
5.1k1577
accept rate: 13%

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:

×471
×28

question asked: 24 Jan, 20:07

question was seen: 353 times

last updated: 27 Jan, 10:11

powered by OSQA