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

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


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 '23, 10:11

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

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:

×483
×30

question asked: 24 Jan '23, 20:07

question was seen: 1,246 times

last updated: 27 Jan '23, 10:11

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