This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Multiple BBoxes

0

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 '23, 20:07

Ogisha's gravatar image

Ogisha
11112
accept rate: 0%

edited 25 Jan '23, 07:23

scai's gravatar image

scai ♦
33.3k21309459


One Answer:

1

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.

answered 27 Jan '23, 10:11

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%