Why not ask your question on the new OpenStreetMap Community Forum?

If I want to search for the ways and relations of highways and buildings within a bounding box, is this the most efficient way to write that query?


Or is there a more efficient way to specify the bounding box and the ways/relations I want within it? I'm using https://lz4.overpass-api.de/api/interpreter

Thanks for taking the time.


To add some more context, we have an application where a user can toggle buildings, roads, railways...etc. So I need to be able to programatically peice together the query. So we get variations like:


asked 08 Jan '20, 20:35

kida001's gravatar image

accept rate: 0%

edited 10 Jan '20, 14:08

TZorn's gravatar image


I think this is already the most efficient and most concise query. However I'm not an Overpass API expert.

(13 Jan '20, 13:41) scai ♦
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



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:


question asked: 08 Jan '20, 20:35

question was seen: 810 times

last updated: 13 Jan '20, 13:41

powered by OSQA